SDK Manager.exe doesn't work

前端 未结 25 1311
青春惊慌失措
青春惊慌失措 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:25

    I was getting the error "C:\Program is not recognized as an internal or external command" Followed by loads of "unable to copy file" Followed by something about Android_SWT not being able to be found.

    The way I fixed the problem on my system (Windows 8, 64 bit, JDK 7) was:

    1. Create JAVA_HOME environment variable and point it to C:\Program Files\Java\jdk1.7.0_10\bin
    2. Open ANDROID SDK DIRECTORY\tools\android.bat in your favorite text editor
    3. Find the lines set java_exe= call lib\find_java.bat (it's split over 2 lines)
    4. Replace the lines with set java_exe="%JAVA_HOME%\java.exe"
    5. Save and run tools\android.bat

    The problem was that the the space in the path was not being handled correctly. By wrapping the path in quotation marks, the space is then correctly catered for.

提交回复
热议问题