我在Windows 7中设置android dev环境时遇到问题.我按照这里的说明,以及几个环境子链接.我正在使用带有Android插件的Eclipse.我已经在不同的位置安装了几次Java JDK(jdk-6u20-windows-i586.exe) - 但我显然遗漏了一些东西.
每次我运行"android create avd --target 2 --name my_avd"我都会收到错误消息:
C:\Users\andrew>android create avd --target 2 --name my_avd
WARNING: Java not found in your path.
Checking it it's installed in C:\Program Files\Java instead.
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 …Run Code Online (Sandbox Code Playgroud)