SDK manager not starting

蹲街弑〆低调 提交于 2019-12-13 04:37:04

问题


When i click on SDK manager in the eclipse, it does not start. Rather it displaying following message

Android\tools\lib\\find_java.exe -s' is not recognized as an internal or external command, operable program or batch file"

I tried to change my Path variable, but it still does not work. Not sure what mistake I am doing. Appreciate your help.

My path variable contains:

JAVA_HOME is C:\Program Files\Java\jdk1.7.0

C:\Program Files\PC Connectivity Solution\;%JAVA_HOME%\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files\Common Files\Roxio Shared\DLLShared\;C:\Program Files\Common Files\Roxio Shared\10.0\DLLShared\;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files\TortoiseGit\bin

Thanks


回答1:


Try these steps:

Open up /tools/android.bat in your favorite text editor

Search for this piece of code:

set java_exe=
call lib\find_java.bat
if not defined java_exe goto :EOF

Replace it with this:

set java_exe="<Path of your JDK>\bin\java.exe" 

java_exe will be the static path is the path to your Java exe.

Run android.bat




回答2:


Not sure if this is the solution your looking for, but when I set file path variables I use 2 backslashes instead of one. So it would be

C:\\Program Files\\Java\\jdk1.7.0\\jre\\bin;
D:\\Android-SDK\\adt-bundle-windows-x86-20130911\\adt-bundle-windows-x86-20130911\\sdk\\tools;
C:\\Program Files\\PC Connectivity Solution\\; 



回答3:


I guess there is a problem with the find_java.bat file. Please refer to the thread here https://code.google.com/p/android/issues/detail?id=28196



来源:https://stackoverflow.com/questions/18891173/sdk-manager-not-starting

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!