android - Intellij IDEA 显示错误 : could not create the java virtual machine

标签 android intellij-idea jvm fatal-error dex

我在使用 intellij idea ide 时遇到问题。 它工作正常,但突然开始显示错误:

Android Dex: [untitled3] Error: Could not create the Java Virtual Machine.
Android Dex: [untitled3] Error: A fatal exception has occurred. Program will exit.

我检查了我的sdk,jdk路径。 我已经完成了重新安装,但问题仍然存在。 任何帮助,将不胜感激。

谢谢。

最佳答案

问题是由 DX 编译器的堆大小过大引起的,it can be changed here (文件 | 设置 | 编译器 | Android DX编译器)。

Check this document这解释了为什么在使用 32 位 JDK 时会发生这种情况。

关于android - Intellij IDEA 显示错误 : could not create the java virtual machine,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18095117/

相关文章:

java - 机器人 : unable to load weview in tab view

android - MapView 中的 Fragment 内存泄漏

clojure - 为什么 Clojure 而不是其他 JVM Lisps : Kawa, Armed Bear 或 SISC?

java - 浏览器上通常安装哪些 Java 版本,假设 1.4 是否安全?

android - 如何在 Baseactivity 和子 Activity 中处理 butterknife 绑定(bind)?

android - 制作一个 relativeLayout,它是我的 child ,imageview 就像一个按钮

android - 未在 UI 编辑器 android 上指定 Intellij 设备

java - 使用扫描仪重复文件打印

visual-studio - 我可以像 Visual Studio 一样设置 Intellij IDE 的环境吗?

java - 如何以编程方式确定 JVM 中可用的资源限制?