本文介绍了Android Studio:“等级同步失败:无法从所选的JDK运行JVM."的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

自从安装Android Studio 3.2以来,我一直无法运行Java,我尝试过jdk-8u181-windows-x64jdk-10.0.2_windows-x64_binjdk-11_windows-x64_bin,设置PATH并多次重新安装所有内容,结果是相同的-没有"java"出现,并且错误消息是:-

Ever since installing Android Studio 3.2, I haven't been able to run Java, I have tried jdk-8u181-windows-x64, jdk-10.0.2_windows-x64_bin, jdk-11_windows-x64_bin, setting PATH and reinstalling everything umpteen times, the result is the same - no "java" appears and the error message is: -

注意:我曾经能够打开java文件夹,但是在玩了太多之后,出了点问题,所以,我决定重新开始...从那以后我就死了.

Notes: I used to be able to open the java folder but after playing with it too much, something went wrong, so, I decided to start afresh... and I am dead ever since.

Studio 3.2是否有缺陷?根本不兼容Java吗?还是我错过了什么?我可以测试较旧的Android Studio吗?感谢您提供的任何帮助.

Is Studio 3.2 flawed? Not compatible with Java at all? Or am I missing something? is there a older Android Studio I can test? Thanks for any help you may provide.

推荐答案

就我而言,以下解决了它:

In my case, the following solved it:

文件->其他设置->默认项目结构...

File->Other settings->Default Project Structure...

在"JDK位置"中,我以前选择了Oracle jdk.为了解决此问题,我改而选中了使用嵌入式JDK(推荐)"

In "JDK Location", I previously had the oracle jdk selected. To fix this issue, I instead checked "Use embedded JDK (recommended)"

这篇关于Android Studio:“等级同步失败:无法从所选的JDK运行JVM."的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

11-01 23:36