简体   繁体   English

Android SDK 管理器打不开

[英]Android SDK manager doesn't open

I have installed SDK and eclipse, but SDK manager and avd manager doesn't open, a black screen flashes for a Milli seconds and closes.我已经安装了 SDK 和 eclipse,但是 SDK 管理器和 avd 管理器没有打开,黑屏闪烁一毫秒然后关闭。 Here is what I have tried :- ( NB - I am using a 32-bit Windows 8 that runs on x86 processor ) Tried to define environment variables to a path -这是我尝试过的:-(注意-我使用的是在 x86 处理器上运行的 32 位 Windows 8)尝试将环境变量定义为路径-

JAVA_HOME C:\Program Files\Java\jdk1.7.0_21\bin
JAVA_JRE  C:\Program Files\Java\jre7\bin 

But still, it doesn't work.但是,它仍然不起作用。 On trying to run android.bat, I get a window that says..在尝试运行 android.bat 时,我得到一个窗口,上面写着..

ERROR: No suitable Java found. In order to properly use the Android Developer
Tools, you need a suitable version of Java installed on your system. We
recommend that you install the JDK version of JavaSE, available here:
  http://java.sun.com/javase/downloads/

You can find the complete Android SDK requirements here:
  http://developer.android.com/sdk/requirements.html

Replaced JRE 1.7 with JRE 1.6.将 JRE 1.7 替换为 JRE 1.6。 It also didn't help它也没有帮助

If you already have installed JRE/JDK, then add JRE/JDK to Environment variables > PATH:如果你已经安装了 JRE/JDK,那么将 JRE/JDK 添加到 Environment variables > PATH:

C:\Program Files\Java\jre7\bin

Or或者

C:\Program Files\Java\jdk1.7.0_15\bin

Please note that the actual JDK version installed on your machine may differ.请注意,您机器上安装的实际 JDK 版本可能会有所不同。

Check your PATH system, and check if you have a java.exe file in C:\\Windows\\system32;检查你的PATH系统,并检查C:\\Windows\\system32中是否有java.exe文件; remove it (make a backup) and try to reinstall your android sdk.删除它(进行备份)并尝试重新安装您的android sdk。 I think you have another virtual java machine running in your pc.我认为您的 PC 上运行着另一台虚拟 Java 机。

For check your current java machine: open a console and type "java -version"要检查您当前的 java 机器:打开控制台并输入“java -version”

If you would like to try the new Android Studio (released under the 2013 Google I/O) it's most suitable that start from scratch about configuring environment.如果您想尝试新的 Android Studio(在 2013 Google I/O 下发布),最适合从头开始配置环境。

https://developer.android.com/sdk/installing/studio.html https://developer.android.com/sdk/installing/studio.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM