Android studio not installing even if JDK 8 is installed

I have same error but i closely look into the note and then my problem solved :)

enter image description here


In my case, I am using java8 and based on Doc I just had to add the following:

 implementation "androidx.lifecycle:lifecycle-common-java8:$lifecycle_version"

While running Java 6 something I tried to install Android Studio. Android Studio did not find Java 7 or Java 8, so it asked me to install at least Java 7 and gave a link to Java 7. While the original instance of Android Studio Installer was still alive, it would not find Java 7 or 8. killing and restarting Android Studio Installer worked just fine. So install Java and restart the installer.


I had the same problem. I discovered that it was caused because I installed the JDK while the Android Studio installer was still opened and at the prompt to load the location of the JDK. Closing the Android installer and then reloading it after the JDK installation had completed and was closed out, solved the installation problem for me.

Tags:

Java

Android