Android SDK not working

隐身守侯 提交于 2020-01-04 05:15:34

问题


The Android SDK doesn't open so i tried to open Android.bat to see the errors and I get this Error:

The system cannot find the file specified.
The system cannot find the file specified.
The system cannot find the file specified.
The system cannot find the file specified.
Error: Could not find or load main class com.android.sdkmanager.Main
Press any key to continue . . .

Here is my Environment Variables:

ANDROID_SWT: C:\adt-bundle-windows-x86\sdk\tools\lib\x86.
JAVA_HOME: C:\Program Files\Java\jdk1.7.0_25.
JDK_HOME: C:\Program Files\Java\jdk1.7.0_25.
PATH:(Sorted that it will be Readable)

C:\Python33\;
%SystemRoot%\system32;
%SystemRoot%;
%SystemRoot%\System32\Wbem;
%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;
C:\Program Files\Microsoft Network Monitor 3\;
C:\adt-bundle-windows-x86\sdk\platform-tools;
C:\adt-bundle-windows-x86\sdk\tools;C:\PHP;
C:\Program Files\TortoiseSVN\bin;
C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;
C:\Program Files\Microsoft Visual Studio 11.0\VC\bin;
C:\Program Files\OpenVPN\bin.

I searched the whole web and i couldn't find any answer, i would like if you will help me to fix it.
Thanks!


回答1:


Taken from the possibly duplicated thread:

The latest SDK has AVD Manager in the SDK Manager itself. Open SDK Manager -> Tools -> Manage AVDs




回答2:


Did you try installing the JDK outside Program Files? That is install it in a directory, which does not have any spaces in the path. For example install the JDK in the following directory and try again

c:\installs\java



回答3:


Make Sdk update to repair the sdk bundle and try making some avds




回答4:


Your JAVA_HOME might be configured wrongly. Trying changing the path to C:\Program Files\Java\jdk1.7.0_25\jre\bin



来源:https://stackoverflow.com/questions/17424923/android-sdk-not-working

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