When I start Android Studio, I get this error:
The environment variable JAVA_HOME does not point to a valid JVM installation.
JAVA_HOME environment variable is set to
Remove the semicolon from the end of the
JAVA_HOME environment variable. That variable can only point to one place; it's not like
PATH which separates folders with semicolons.
You also need to remove the
bin part; the variable should point to the root of the JDK installation.
I dont use system environment in my configurations.
In User variables set JAVA_HOME = C:\Program Files\Java\jdk1.8.0_65
In User variables set JDK_HOME = C:\Program Files\Java\jdk1.8.0_65\bin
In User variables add current PATH = %JDK_HOME%;%JAVA_HOME%;..your current path..
There is no path about java in system variables...
I solved this problem like this.
You will have to set JAVA_HOME under System variables instead of adding it User variables This has worked for me.
Thank you for your interest in this question.
Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead?