java 安装 Android Studio 进行 Android 开发
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/17748117/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Installing Android Studio for Android development
提问by Si8
I just downloaded the early access of Android Studio. While trying to run, I had to modify the environment variable and add
我刚刚下载了Android Studio的抢先体验版。在尝试运行时,我不得不修改环境变量并添加
JAVA_HOME
JAVA_主页
and
和
C:\Progra~2\Java\jre1.6.0_07
C:\Progra~2\Java\jre1.6.0_07
Once I finished that hurdle, now I am receiving another error:
一旦我完成了那个障碍,现在我收到另一个错误:
The environment variable JAVA_HOME (with the value of *C:\Progra~2\Java\jre1.6.0_07*) does not point to a valid JVM installation.
I looked through other similar question and was asked to check the version, so I did the following in CMD:
我查看了其他类似的问题并被要求检查版本,因此我在 CMD 中执行了以下操作:
C:\Windows\System32>java -version
java version "1.7.0_07"
Java(TM) SE Runtime Environment (build 1.7.0_07-b11)
Java HotSpot(TM) 64-Bit Server VM (build 23.3-b01, mixed mode)
From the result it seems like I have JVM. If I don't where do I download the JVM from?
从结果看来,我有 JVM。如果我不这样做,我从哪里下载 JVM?
回答by Sam Dufel
Try setting JAVA_HOME
to your JDK folder, not your JRE folder. If you don't have an installed JDK, go download it (http://www.oracle.com/technetwork/java/javase/downloads/index.html)
尝试设置JAVA_HOME
为您的 JDK 文件夹,而不是您的 JRE 文件夹。如果您没有安装 JDK,请下载它(http://www.oracle.com/technetwork/java/javase/downloads/index.html)