我正在尝试在Android Studio中打开SDK Manager,但每次出现错误。我第一次打开它时,会看到一个完成的进度条。但什么都没有打开如果我再试一次,我会收到以下错误消息:
Cannot launch SDK manager.
Output:
'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.
Stackoverflow上还有其他主题有相同的问题。从这些主题我发现可能我的Path环境变量导致错误。我尝试了很多东西,但错误仍然存在..
我的系统变量路径是:
C:\Python27\;C:\Python27\Scripts;%M2_HOME%\bin;%JAVA_HOME%\bin;%M2%;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files\Microsoft SQL Server\120\Tools\Binn\;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit\;C:\Program Files (x86)\Java\jdk1.7.0_67\bin\Microsoft SDKs\TypeScript\1.0\
编辑:问题已解决。我多次重新安装Android Studio,不知怎的,它有效。