Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android SDK installation doesn't find JDK

People also ask

Does Android SDK include JDK?

A copy of the latest OpenJDK comes bundled with Android Studio 2.2 and higher, and this is the JDK version we recommend you use for your Android projects. So if you are using the newest version, you won't need any additional JDK.

Why JDK is not installed?

If it is not, please try to install x86 (32 bit) JDK. If it is x64 (64 bit) then, try to run with "Run as administrator" option by right clicking it. If it is not working either way, then please check the system log from Control Panel -> Administrative Tools -> Event Viewer and see what is going around on installation.

Where is my JDK installation?

The JDK software is installed on your computer, for example, at C:\Program Files\Java\jdk1.


Press Back when you get the notification and then Next. This time it will find the JDK.


Actual SETUP:

  • OS: Windows 8.1
  • JDK file: jdk-8u11-windows-x64.exe
  • ADT file: installer_r23.0.2-windows.exe

Install the x64 JDK, and try the back-next option first, and then try setting JAVA_HOME like the error message says, but if that doesn't work for you either, then try this:

Do as it says, set JAVA_HOME in your environment variables, but in the path use forward slashes instead of backslashes.

Seriously.

For me it failed when JAVA_HOME was C:\Program Files\Java\jdk1.6.0_31 but worked fine when it was C:/Program Files/Java/jdk1.6.0_31 - drove me nuts!

If this is not enough, also add to the beginning of the Environment Variable Path %JAVA_HOME%;

Updated values in System Environment Variables:

  • JAVA_HOME=C:/Program Files/Java/jdk1.8.0_11
  • JRE_HOME=C:/Program Files/Java/jre8
  • Path=%JAVA_HOME%;C:...

I found the solution and it's beautifully stupid. I found Android SDK cannot detect JDK.

Press the Back button on the SDK error screen that tells you that the EXE couldn't detect the JDK. Then press Next.

Who would have thought that would happen?


It seems like it doesn't work without 32 bit JDK. Just install it and be happy...