我在使用 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/