Android Studio - 未找到 JVM 安装 [英] Android Studio - No JVM Installation found

查看:36
本文介绍了Android Studio - 未找到 JVM 安装的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在尝试启动 Android Studio

当我在安装后尝试启动它时出现此错误:

When I try to launch it after installation I'm getting this error:

未找到 JVM 安装.请安装 64 位 JDK.

我目前的系统规格:

操作系统:Windows 8.0 64 位版本
JDK 安装:JDK 1.8.0

我尝试过的:

我已经尝试过错误中报告的内容,并且还在大多数解决方案中将环境变量中的 JDK_HOME 变量设置为我的 JDK 路径(64 位版本),即 C:\Program Files\Java\jdk1.8.0_05

I have tried what was reported in the error, and also in most of the solutions to set the JDK_HOME variable in environment variables to my JDK path (64 bit version) i.e. C:\Program Files\Java\jdk1.8.0_05

*我也试过重启系统,以防万一测试环境变量在没有重启的情况下是否不起作用

我已经看过这些解决方案并尝试过,但没有一个有效,所以不要将其标记为这些解决方案的重复:
​​Android Studio 在 Windows 7 上安装失败,未找到 JDK
android studio没有找到jvm,JAVA_HOME已经设置
Android Studio 在 Windows 8 64 位上启动失败
Android Studio 安装后无法启动

I have seen these solutions and tried but none of them works, so don't mark it as a duplicate of any of these:
Android Studio installation on Windows 7 fails, no JDK found
With android studio no jvm found, JAVA_HOME has been set
Android Studio start fails on Windows 8 64bit
Android Studio does not launch after installation

这是java版本的cmd输出:

Here is the cmd output for java version:

推荐答案

我遇到了同样的问题.我尝试设置各种路径,但没有任何效果.所以我不得不做一些肮脏的修复.唯一的问题是它会打开一个空白的命令行窗口.

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.

  • 转到 AndroidStudio 安装文件夹.
  • 转到bin文件夹并在文本编辑器中打开studio.bat
  • add set JAVA_HOME=C:\Program Files\Java2\jdk1.8.0//ECHO 行后面的你的java路径.
  • 转到开始 -> 所有程序 -> Android Studio ->
  • 右键点击Android Studio,然后点击properties.
  • 您将看到 Target 类似于 android-studio\bin\studio64.exe
  • 改成<安装路径>android-studio\bin\studio.bat
  • goto the AndroidStudio installation folder.
  • goto bin folder and open studio.bat in text editor
  • add set JAVA_HOME=C:\Program Files\Java2\jdk1.8.0//your java path after the ECHO line.
  • goto Start -> All Programmes -> Android Studio ->
  • right click on Android Studio and click on properties.
  • You will see the Target something like <installation path>android-studio\bin\studio64.exe
  • change it to <installation path>android-studio\bin\studio.bat

现在您可以通过从菜单中单击来访问它.

Now you can access it by clicking it from the menu.

注意:我用 8 试过了,它有效.

Note : I tried it with 8, It works.

这篇关于Android Studio - 未找到 JVM 安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆