Android Studio-JAVA_HOME没有指向有效的JVM安装 [英] Android Studio - JAVA_HOME doesn't point to a valid JVM installation
问题描述
启动android studio时遇到问题.得到以下消息:环境变量JAVA_HOME(值为?C:\ Program Files \ Java \ jdk1.8.0_31)没有指向有效的JVM安装.问题是,据我所知,我设置的环境变量IS指向有效安装.
Having trouble firing up android studio. Get the following message: The environment variable JAVA_HOME (with the value of ?C:\Program Files\Java\jdk1.8.0_31) does not point to a valid JVM installation. The problem is that as far as I can tell, the environment variable I set up IS pointing to a valid install.
我尝试了所有操作,从重命名到JDK_HOME,到将其指向jdk文件夹中的所有子目录,再到卸载和重新安装java和android studio大约3次.我已三重检查是否已安装64位JAVA(并且我的计算机是64位).我的绳索几乎在这里尽头.帮助将不胜感激大时间.
I've tried everything from renaming it to JDK_HOME, to pointing it to all the sub directories in the jdk folder, to uninstalling and reinstalling java and android studio about 3 time. I have triple checked that I have 64 bit JAVA installed (and that my computer is 64 bit). Pretty much at the end of my rope here. Help would be appreciated big time.
这是我的窗户的屏幕截图,您可能会发现一些明显的我没有的东西:
Here's a screen cap of my windows, you might spot something obvious I haven't:
推荐答案
您可以尝试一下 Android Studio错误:环境变量未指向有效的JVM安装"
这对我有用. 如果您启动64位Android Studio,则必须将JAVA_HOME添加为
this works for me. If you start 64bit Android Studio, you have to add JAVA_HOME as
"C:\Program Files\Java\jdk..."
如果是32位
"C:\Program Files(x86)\Java\jdk..."
也不要在路径的末尾加上"\ bin".
and dont put "\bin" end of the path.
这篇关于Android Studio-JAVA_HOME没有指向有效的JVM安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!