Java Android Studio :“未找到 JVM 安装。请安装 32 位 JDK”

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/23204885/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-13 21:19:19  来源:igfitidea点击:

Android Studio : " No JVM installation found. Please install a 32-bit JDK "

javaandroidandroid-studio

提问by Saeid Khaleghi

i read a lot about this problem , still can't figure out what is im doing wrong ?

我读了很多关于这个问题,仍然无法弄清楚我做错了什么?

this is a picture of my settings :

这是我的设置图片:

enter image description here

在此处输入图片说明

any idea ?

任何的想法 ?

Update : [ As you see in the picture , im using java 8, is it wrong ? ]

更新: [正如你在图片中看到的,我正在使用java 8,有错吗?]

采纳答案by JonK

Your environment variables dialog shows you have a variable called JDK_HOMElisted, whereas the error message is telling you to call it JAVA_HOME.

您的环境变量对话框显示您有一个名为JDK_HOME列出的变量,而错误消息告诉您调用它JAVA_HOME

You are also using a version of Java that isn't compatible with Android. You'll need to use Java 6 or 7 instead. The latest Java 7 release can be found here.

您还使用了与 Android 不兼容的 Java 版本。您需要改用 Java 6 或 7。可以在此处找到最新的 Java 7 版本。

回答by user3447006

Try Searching with windows where the jdk is, then target your system variable to that location.. hope this help

尝试使用 jdk 所在的窗口进行搜索,然后将您的系统变量定位到该位置。希望对您有所帮助