简体   繁体   English

Android 工作室显示错误:加载失败 JVM

[英]Android studio displaying error: Failed to load JVM

Error Message错误信息

The error message I'm receiving reads:我收到的错误消息是:

Failed to load JVM DLL C:\Program Files\Android\Android Studio\jbr\\bin\server\jvm.dll
If you already have a JDK installed, define a JAVA_HOME variable in Computer > System Properties > System Settings > Environment Variables.

I am running a 2022 Framework laptop with Windows 11, attempting to install 64-bit Electric Eel Android Studio.我正在运行带有 Windows 11 的 2022 Framework 笔记本电脑,试图安装 64 位 Electric Eel Android Studio。 I believe this problem originated when I was attempting to uninstall Android Studio after running (breaking) an emulator.我相信这个问题起源于我在运行(破坏)模拟器后尝试卸载 Android Studio。

It appears in a small window instead of Android Studio.它出现在一个小的 window 而不是 Android Studio 中。 I already tried uninstalling every Java-related thing, reinstalling Java from the Oracle website, hard resetting my whole computer and deleting all files, and reinstalling Android Studio.我已经尝试卸载所有与 Java 相关的东西,从 Oracle 网站重新安装 Java,硬重置我的整个计算机并删除所有文件,然后重新安装 Android Studio。 Is there any way that I can easily reconfigure it?有什么方法可以轻松地重新配置它吗?

I just had this exact problem happen to me today after the same update.在相同的更新之后,我今天刚刚遇到了这个确切的问题。 I went through this thread to find me solution:我通过这个线程来找到我的解决方案:

Android Studio Failed to Load JVM DLL Android 工作室加载失败 JVM DLL

Sounds like there are different fixes out out there.听起来那里有不同的修复程序。 I had to try several before getting it to work.在让它工作之前,我不得不尝试几次。

Good luck!祝你好运!

I faced the same problem after installing android studio release electric eel on a fresh windows device.在新的 windows 设备上安装 android studio release electric eel 后,我遇到了同样的问题。 It turns out I was missing JDK.事实证明我缺少 JDK。 So what I did was所以我所做的是

  1. Installed the JDK安装了 JDK
  2. Set the jdk's bin location to path设置jdk的bin位置为path
  3. Set JAVA_HOME variable设置 JAVA_HOME 变量

Thanks for all the help guys, I ended up installing Microsoft Visual C++ X64.感谢大家的帮助,我最终安装了 Microsoft Visual C++ X64。 and then restarting Android Studio.然后重新启动 Android Studio。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM