【问题标题】:Android SDK Manager Launch issues?Android SDK 管理器启动问题?
【发布时间】:2015-02-15 08:39:11
【问题描述】:

我已经被这个问题困扰了超过 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 中进行了硬编码 设置 java_exe="C:\Program Files\Java\jdk1.8.0_05\bin\java.exe"

以及在 Android.bat 中 设置 java_exe="C:\Program Files\Java\jdk1.8.0_05\bin\java.exe"

还覆盖了来自http://tools.android.com/knownissues 的文件。

有人可以帮忙吗?

谢谢。

【问题讨论】:

  • 检查您计算机的系统信息以查看您是否需要 x86(32 位)或 x64(64 位)版本的程序。如果您需要 32 位版本,请卸载 Java JDK,然后重新安装 32 位版本的 JDK。
  • 肯定是 32 位的。不知道为什么要搜索 64 位。我曾经删除了 find_java64 然后也没有帮助。我还有什么遗漏的吗?
  • 你没有读到我写的东西。请卸载当前版本的 JDK。你安装错了。

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


【解决方案1】:

我刚刚遇到了同样的问题,在 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

指令'Query "..." |就我而言,find /i "x86" > ...' 似乎是问题的根源(“find: '/i': No such file or directory”)。我没有进一步调查,因为该架构是众所周知的。

【讨论】:

    【解决方案2】:

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

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多