Android Studio 解决方法No JVM installation found. Please install a 64-bit JDK.

MrLee2015-3-1 6359

Android Studio终于发布了1.0正式版,下载地址:http://developer.android.com/sdk/index.html。需要注意的是Android Studio需要JDK 1.7+才可以安装,不过这个时候也要升级到1.7了。
我这里是下载的绿色版(非安装版),运行的时候提示找不到虚拟机。
---------------------------Error launching Android Studio---------------------------No JVM installation found. Please install a 64-bit JDK.If you already have a JDK installed, define a JAVA_HOME variable in Computer > System Properties > System Settings > Environment Variables.---------------------------确定---------------------------
一切都原因都是环境变量设置引起的,看到这明白是什么原因了吧。另外,再说明一点,sdk是不是必须要升级到22版本才能使用,这个不确定(好像官网也没怎么说明),因为没安装之前已经升级到新版本,如果不行再升级吧。本人的三个环境变量设置如下(保险起见设置三个变量了):
JAVA_HOME:C:\Program Files\Java\jdk1.8.0_31\bin;C:\Program Files\Java\jdk1.8.0_31\jre\bin;C:\Program Files\Java\jdk1.8.0_31\lib\tools.jar;C:\Program Files\Java\jdk1.8.0_31\lib\dt.jar;
JDK_HOME:C:\Program Files\Java\jdk1.8.0_31\;C:\Program Files\Java\jdk1.8.0_31\bin;C:\Program Files\Java\jdk1.8.0_31\jre\bin;
ANDROID_STUDIO_JDK:C:\Program Files\Java\jdk1.8.0_31

希望帮到尝试新东西的你们,写得不好,请不要骂人哦;再说一句,我的是Win7 64位系统,祝各位好运。

本文链接:https://www.it72.com/1143.htm

推荐阅读
最新回复 (1)
  • xiguazi2016-5-25
    I had the same problem. I tried setting all kind of paths but nothing worked. So I had to do some dirty fix. The only problem with this is that it opens a blank command line window.
    I did the following to make it work.
    goto the AndroidStudio installation folder.goto bin folder and open studio.bat in text editoradd set JAVA_HOME=C:\Program Files\Java2\jdk1.8.;goto Start -> All Programmes -> Android Studio ->right click on Android Studio and click on properties.You will see the Target something like android-studio\bin\studio64.exechange it to android-studio\bin\studio.batNow you can access it by clicking it from the menu.
    Note : I tried it with 8, It works.
返回