尝试启动虚拟设备管理器时android出错:
Cannot launch AVD manager.
输出:
"C:\PROGRA~2\Android\ANDROI~2\sdk\tools\lib\\find_java.exe" -s' is not recognized as an internal or external command,
operable program or batch file.
ERROR: No suitable Java found. In order to properly use the Android Developer
Tools, you need a suitable version of Java JDK installed on your system.
We recommend that you install the JDK version of JavaSE, available here:
http://www.oracle.com/technetwork/java/javase/downloads
If you already have Java installed, you can define the JAVA_HOME environment
variable in Control Panel / System / Avanced System Settings to point to the
JDK folder.
You can find the complete Android SDK requirements here:
http://developer.android.com/sdk/requirements.html
我已多次重新安装java jdk,我还正确设置了JAVA_HOME
变量。
这个问题也在eclipse中持续存在,所以我安装了android studio。
确切的值JAVA_HOME
:"C:\Program Files\Java\jdk1.8.0_05\"
。
如果需要进一步的细节,我将在评论中提供。
答案 0 :(得分:0)
AFAIK,AndroidStudio通常会寻找JRE的东西,Eclipse会寻找JDK的东西。这就是我为使Eclipse和AS在我的系统中工作所做的工作:
设置2个环境变量,如下所示,看它是否有效..它对我有用而没有问题
JAVA_HOME - C:\Program Files\Java
JDK_HOME - C:\Program Files\Java\jre7
希望这会有所帮助......