Android SDK installation doesn't find JDK

I'm trying to install the Android SDK on my Windows 7 x64 System. jdk-6u23-windows-x64.exe is installed, but the Android SDK setup refuses to proceed, because it doesn't find the JDK installation.

Is this a known issue? And is there a solution?

SDK错误


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 FilesJavajdk1.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?

    链接地址: http://www.djcxy.com/p/16158.html

    上一篇: 加快Android模拟器

    下一篇: Android SDK安装没有找到JDK