Can't get Android SDK Manager to open

前端 未结 12 1774
感情败类
感情败类 2020-12-05 04:17

Having searched here and elsewhere for answers to my problems, I\'m still unable to fix this.

I\'ve installed Eclipse, ADT Plugin, and the Android SDK. My problem is

12条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-05 04:55

    Open cmd,

    go to android sdk folder,

    in tools/lib/, edit find_java.bat,

    you will see the lines like below, add black line to your file and save.

    rem Check we have a valid Java.exe in the path. The return code will

    rem be 0 if the command worked or 1 if the exec failed (program not

    found). for /f %%a in ('%~dps0\find_java.exe -t') do set java_exe=%%a

    this

    set java_exe="C:\Program Files\Java\jdk1.7.0_11\bin\java.exe"

    if not defined java_exe goto :CheckFailed

    :SearchJavaW

    rem Check if we can find a javaw.exe at the same location

    than java.exe. rem If that doesn't work, just fall back on the

    java.exe we just found. for /f %%a in ('%~dps0\find_java.exe -t -w')

    do set javaw_exe=%%a if not exist %javaw_exe% set javaw_exe=%java_exe%

    set javaw_exe="C:\Program Files\Java\jdk1.7.0_11\bin\java.exe"

    i hope it helps

提交回复
热议问题