Android SDK Manager won't start/open

亡梦爱人 提交于 2020-01-02 00:27:49

问题


I know this is a common problem, and I have tried several solutions and none of them work for me.

I have deleted everything and started over. Could someone try to help me to get this to work?

I have these folders:
C:\Android\adt-bundle-windows-x86_64-20140702
C:\Android\android-ndk-r8e
C:\Android\android-sdk-windows
C:\Program Files\Java\jdk1.7.0_67
C:\Program Files\Java\jdk1.8.0_05
C:\Program Files\Java\jre7
C:\Program Files\Java\jre8

When trying to run android.bat:

C:\Android\android-sdk-windows\tools>android.bat
'xcopy' is not recognized as an internal or external command,
operable program or batch file.
ERROR: SWT folder 'lib\x86_64' does not exist.
Please set ANDROID_SWT to point to the folder containing swt.jar for your platform.

回答1:


Android currently support up to Java 7 (JDK 1.7). If you use JDK 1.8, it won't work.

Also, assuming you're using Java 7, set up JAVA_HOME in Environment Variables by pointing it to C:\Program Files\Java\jdk1.7.0_71 so the Android SDK Manager knows which Java version to use.

On Windows 64-bit, Environment Variables can be accessed by going to Start | Control Panel | System | Advanced System Settings | System Properties | Advance | Environment Variables option. Note: You may need to restart Windows for the changes to take effect.

CAVEAT: On Windows 8.1, if the above steps fail, then install the Android SDK from the installer_r23.0.2-windows.exe executable which can be downloaded from here. Also, ensure that you uninstall JDK 1.8 from Windows 8.1 and only use JDK 1.7 with Android SDK Manager (or 1.6 if you need it).




回答2:


I think there is still a problem with your environment variable Path, could you check that there is a URL to your java 1.7 bin path? e.g. C:\Program Files (x86)\Java\jdk1.6.0_29\bin

You could also try from suggested here https://developer.appcelerator.com/question/136334/xcopy-is-not-recognized-as-an-internal-or-external-command:

Add this to your path variable:

%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files (x86)\Java\jdk1.6.0_29\bin



回答3:


please check if the ANDROID_SWT environment variable is pointing to a correct folder (i.e. sdk\tools\lib\x86 in your adt folder).



来源:https://stackoverflow.com/questions/25960924/android-sdk-manager-wont-start-open

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