I installed Java 8 on my computer, but Android Studio does not find it. When I run the Android Studio installer, I only see a screen on which I can see the introduction, and when I click “Next” another screen on which it appears that says:
We were unable to locate the Java Development Kit (JDK) v7 or later on your system. Please go to his path, if known.
So, I searched my JDK , and when I click the "Next" button, I get the following message:
Sorry, we still could not find a valid JDK, which we need to continue.
If you install your JDK path manually, make sure you look at the parent directory containing "bin \ java.exe", whose version version is 1.7 or higher when running "java.exe -version".
After that, I go to the console and run the command "java.exe -version". This gives me:
java version "1.8.0_60"
Therefore, I do not know why he did not find my JDK . I also tried adding some environment variables:
JAVA_HOME: C:\Program Files\Java\jre1.8.0_60\ JDK_HOME: C:\Program Files\Java\jre1.8.0_60\
But he still does not find it. How can i fix this?
Note. I use Windows 10 as an OS.
Thanks in advance!
source share