无法打开 Android SDK 管理器 [英] Can't get Android SDK Manager to open
问题描述
在这里和其他地方搜索了我的问题的答案,我仍然无法解决这个问题.
我已经安装了 Eclipse、ADT 插件和 Android SDK.我的问题是无论是从 Eclipse 启动还是直接启动,SDK 管理器都不会打开.命令提示符窗口短暂闪烁,然后关闭.
我尝试了几种建议的解决方案:我的 Path 和 JAVA_HOME
变量的各种配置,安装 32 位和 64 位版本的 JDK,以管理员身份运行,但都没有成功.>
不同的组件安装在以下路径:
JDK - C:Program FilesJavajdk1.7.0_11JRE - C:Program FilesJavajre7SDK - C:ADTsdk
我的 JAVA_HOME 设置为 C:Program FilesJavajdk1.7.0_11
我的路径包括 C:Program FilesJavajdk1.7.0_11in
开头.
我已经尝试重新安装 SDK,安装程序正确识别 Java 的位置,但仍然无法正常工作.
谁能帮我解决这个问题?我几乎要把我的头发撕掉!
打开cmd,
进入android sdk文件夹,
在 tools/lib/中,编辑 find_java.bat,
您将看到如下所示的行,在文件中添加黑线并保存.
<块引用>rem 检查我们在路径中有一个有效的 Java.exe.返回码将
如果命令有效则为 0,如果执行失败则为 1(程序无效)
找到).for/f %%a in ('%~dps0find_java.exe -t') 设置 java_exe=%%a
这个
<块引用>set java_exe=C:Program FilesJavajdk1.7.0_11injava.exe"
如果没有定义 java_exe 转到 :CheckFailed
:SearchJavaW
rem 检查是否可以在同一位置找到 javaw.exe
比java.exe.rem 如果这不起作用,就回到
我们刚刚找到的java.exe.for/f %%a in ('%~dps0find_java.exe -t -w')
如果不存在则设置 javaw_exe=%%a %javaw_exe% set javaw_exe=%java_exe%
set javaw_exe=C:Program FilesJavajdk1.7.0_11injava.exe"
希望能帮到你
Having searched here and elsewhere for answers to my problems, I'm still unable to fix this.
I've installed Eclipse, ADT Plugin, and the Android SDK. My problem is that the SDK Manager won't open, whether it is launched from Eclipse or directly. The command prompt window flashes up briefly, then closes.
I've tried several proposed solutions: Various configurations of my Path and JAVA_HOME
variables, installation of the 32 and 64 bit versions of the JDK, running as Administrator, all with no success.
The different components are installed at these paths:
JDK - C:Program FilesJavajdk1.7.0_11
JRE - C:Program FilesJavajre7
SDK - C:ADTsdk
My JAVA_HOME is set to C:Program FilesJavajdk1.7.0_11
My Path includes C:Program FilesJavajdk1.7.0_11in
at the beginning.
I've tried reinstalling the SDK and the installer correctly identifies the location of Java, and yet still it won't work.
Can anyone help me out with this? I'm practically tearing my hair out!
Open cmd,
go to android sdk folder,
in tools/lib/, edit find_java.bat,
you will see the lines like below, add black line to your file and save.
rem Check we have a valid Java.exe in the path. The return code will
rem be 0 if the command worked or 1 if the exec failed (program not
found). for /f %%a in ('%~dps0find_java.exe -t') do set java_exe=%%a
this
set java_exe="C:Program FilesJavajdk1.7.0_11injava.exe"
if not defined java_exe goto :CheckFailed
:SearchJavaW
rem Check if we can find a javaw.exe at the same location
than java.exe. rem If that doesn't work, just fall back on the
java.exe we just found. for /f %%a in ('%~dps0find_java.exe -t -w')
do set javaw_exe=%%a if not exist %javaw_exe% set javaw_exe=%java_exe%
set javaw_exe="C:Program FilesJavajdk1.7.0_11injava.exe"
i hope it helps
这篇关于无法打开 Android SDK 管理器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!