SDK Manager.exe doesn't work

前端 未结 25 1249
青春惊慌失措
青春惊慌失措 2020-11-27 14:28

When I clicked SDK Manager on Program Files or run it in cmd, nothing happened. I did:

  1. Installed latest JDK
  2. Installed latest Android SDK<
25条回答
  •  一整个雨季
    2020-11-27 15:16

    I FINALLY GOT THIS WORKING AFTER 2 SOUL DESTROYING EVENINGS OF TRYING! IF I EVER MEET AN ANDROID SDK DEVELOPER I WILL HACK HIM TO DEATH WITH HIS OWN KEYBOARD

    Anyway, tips for getting it working on Windows 7 64 bit...

    I suspect for me it was multiple problems as none of the suggestions worked so I will list all the things I did to finally get it working

    1) Install the 32 BIT version of Java JDK (yes, even if you are running 64bit Windows)

    2) Install both the SDK and the JDK to paths that have no spaces in (I used C:\Android and C:\Java32)

    3) In the Windows environment variables screen (System Properties > Advanced Settings > Env vars), there's two places you can enter the variables, the "User Variables" and "System variables". I put them in both and included the "bin" bit in both e.g.

    JAVA_HOME = C:\Java32\jdk1.8.0_20\bin

    Path = C:\Java32\jdk1.8.0_20\bin;other paths should come AFTER the jdk...

    4) Edit the file tools\android.bat and look for the following:

    set java_exe=

    call lib\find_java.bat

    change this to:

    set java_exe="C:\Java32\jdk1.8.0_20\bin\java.exe"

    rem call lib\find_java.bat

    You can also put the "@echo off" to "@echo on" at the top of the file for debugging purposes

    Good luck!

提交回复
热议问题