Android SDK Manager启动问题?

时间:2014-12-16 22:00:24

标签: java android android-studio android-sdk-tools

我已经坚持这个问题超过2天了。 Android SDK管理器无法启动。

[2014-12-17 03:08:13 - SDK Manager] [SDK Manager] find: ‘/i’: No such file or directory
[2014-12-17 03:08:13 - SDK Manager] [SDK Manager] find: ‘x86’: No such file or directory
[2014-12-17 03:08:13 - SDK Manager] [SDK Manager] This version of E:\ECLIPS~1\ANDROI~1\tools\lib\find_java64.exe is not compatible with the version of Windows you're running. Check your computer's system information to see whether you need a x86 (32-bit) or x64 (64-bit) version of the program, and then contact the software publisher.
[2014-12-17 03:08:14 - SDK Manager] [SDK Manager] '""C:\Program' is not recognized as an internal or external command,
[2014-12-17 03:08:14 - SDK Manager] [SDK Manager] operable program or batch file.
[2014-12-17 03:09:15 - SDK Manager] [SDK Manager] find: ‘/i’: No such file or directory
[2014-12-17 03:09:15 - SDK Manager] [SDK Manager] find: ‘x86’: No such file or directory
[2014-12-17 03:09:15 - SDK Manager] [SDK Manager] This version of E:\ECLIPS~1\ANDROI~1\tools\lib\find_java64.exe is not compatible with the version of Windows you're running. Check your computer's system information to see whether you need a x86 (32-bit) or x64 (64-bit) version of the program, and then contact the software publisher.
[2014-12-17 03:09:15 - SDK Manager] [SDK Manager] '""C:\Program' is not recognized as an internal or external command,
[2014-12-17 03:09:15 - SDK Manager] [SDK Manager] operable program or batch file.
[2014-12-17 03:13:40 - SDK Manager] [SDK Manager] find: ‘/i’: No such file or directory
[2014-12-17 03:13:40 - SDK Manager] [SDK Manager] find: ‘x86’: No such file or directory
[2014-12-17 03:13:40 - SDK Manager] [SDK Manager] This version of E:\ECLIPS~1\ANDROI~1\tools\lib\find_java64.exe is not compatible with the version of Windows you're running. Check your computer's system information to see whether you need a x86 (32-bit) or x64 (64-bit) version of the program, and then contact the software publisher.
[2014-12-17 03:13:40 - SDK Manager] [SDK Manager] The system cannot find the path specified.
[2014-12-17 03:13:40 - SDK Manager] [SDK Manager] Invalid path
[2014-12-17 03:20:16 - SDK Manager] [SDK Manager] find: ‘/i’: No such file or directory
[2014-12-17 03:20:16 - SDK Manager] [SDK Manager] find: ‘x86’: No such file or directory
[2014-12-17 03:20:17 - SDK Manager] [SDK Manager] This version of E:\ECLIPS~1\ANDROI~1\tools\lib\find_java64.exe is not compatible with the version of Windows you're running. Check your computer's system information to see whether you need a x86 (32-bit) or x64 (64-bit) version of the program, and then contact the software publisher.
[2014-12-17 03:20:18 - SDK Manager] [SDK Manager] '""C:\Program' is not recognized as an internal or external command,
[2014-12-17 03:20:18 - SDK Manager] [SDK Manager] operable program or batch file.

我已经在find_java.bat中进行了硬编码 set java_exe =“C:\ Program Files \ Java \ jdk1.8.0_05 \ bin \ java.exe”

以及Android.bat set java_exe =“C:\ Program Files \ Java \ jdk1.8.0_05 \ bin \ java.exe”

还覆盖了http://tools.android.com/knownissues

中的文件

有人可以帮忙吗?

感谢。

2 个答案:

答案 0 :(得分:8)

我刚遇到同样的问题,在32位处理器上运行xp sp2。我通过对find_java.bat中的arch_ext变量进行硬编码来修复它。

所以你应该恢复你的find_java.bat文件,只需注释第26和27行

26 rem reg Query "HKLM\Hardware\Description\System\CentralProcessor\0" |^
27 rem find /i "x86" > NUL && set arch_ext=32|| set arch_ext=64

然后添加以下内容以强制执行arch_ext变量。

set arch_ext=32

指令'查询" ..." |找/我" x86" > ...'在我看来,似乎是问题的根源("发现:' / i':没有这样的文件或目录")。由于架构众所周知,我没有进一步调查。

答案 1 :(得分:0)

正如Stephan指出的那样,您安装了错误的JDK版本,卸载并安装正确的版本(32位)。