I have a problem trying to install android studio on Ubuntu 14.04. I get the following error:
ERROR: Cannot start Android Studio
No JDK found. Please validate either STUDIO_JDK, JDK_HOME or JAVA_HOME environment variable points to valid JDK installation.
I've already been researching and I only found a solution in Windows in which environment variables have to be created, but in ubuntu I don't find anything, and it is assumed that I already have the JDK installed.
You can set your variable
JAVA_HOME
to/etc/profile
but preferably saveJAVA_HOME
or any system variable to/etc/environment
.Open
/etc/environment
In nano or gedit and add the following:JAVA_HOME="/usr/lib/jvm/jdk"
(The path may be different depending on your machine)Now run the following command to load the variables:
Then check the content of your variable with the following command:
If the route is printed on the screen, you have done it correctly and the same applies to the other variables.
English reference here .