i am using windows 8.1
here is the error
cmd seems to see the java -version but not my android studio.
here is my system variable
i am using windows 8.1
here is the error
cmd seems to see the java -version but not my android studio.
here is my system variable
AndroidStudio is not asking for a JDK, but for a JRE. Try changing the JAVA_HOME to the JRE bundled in the JDK:
C:\Progra~1\Java\jdk1.8.0_131\jre
If above don't work, try with:
C:\Progra~1\Java\jdk1.8.0_131\jre\bin
If neither of them works, check if your JDK is a 64-bit one since the AndroidStudio is asking for a 64-bit java version.
EDITING: Also try copying the content of C:\Progra~1\Java\jdk1.8.0_131\jre to C:\Program Files\Android\Android Studio\jre\jre because it seems that AndroidStudio is checking for java in that path.
edit the project's gradle.properties
and add:
org.gradle.java.home = C\:\\Program\ Files\\Java\\jdk1.8.0_131