ANDROID-编译错误(没有初始化JVM)

标签 android

使用“ant debug”构建项目时出现以下错误。 这是小快照:

-dex: [echo] Converting compiled files and external libraries into C:\ELOQUENCE\b in\classes.dex... [apply] Could not create the Java virtual machine. [apply] Error occurred during initialization of VM [apply] Could not reserve enough space for object heap BUILD FAILED H:\USE\android-sdk-windows\tools\ant\ant_rules_r3.xml:361: The following error o ccurred while executing this line: H:\USE\android-sdk-windows\tools\ant\ant_rules_r3.xml:174: apply returned: 1

请告诉我可以做什么?

谢谢!

最佳答案

尝试减少文件中最大堆空间设置的设置

android-sdk-windows\platform-tools\dx.bat 

到较小的值。我不得不将其更改为 512M 而不是 1024M。

set defaultMx=-Xmx512M

关于ANDROID-编译错误(没有初始化JVM),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4314085/

相关文章:

android - 动态 setOnCLickListener

java - 菜单 3 个点未显示

android - 从 MySql 到 Sqlite Android 的数据库同步云

android - 向日历添加提醒

java - 空输入的打印错误

android - 如何在android中访问外部mysql数据库?

android - C++ 段错误输出

android - 如何在 Android 中制作可滚动矩阵?

java - new Runnable(){} 类型的 findViewById(int) 方法未定义

android - google play services 7.3.0 导致崩溃