android java堆空间

android java堆空间,第1张

概述当我包含超过5个罐子时,由于堆内存,eclipse会在编译时出现问题.Aninternalerroroccurredduring:"ActivityMonitorJob".JavaheapspaceUnabletoexecutedex:javaheapspace我的电脑有2GB内存,eclipse.ini如下-startupplugins/org.eclipse.equinox.launcher_1.

当我包含超过5个罐子时,由于堆内存,eclipse会在编译时出现问题.

An internal error occurred during: "Activity Monitor Job".Java heap spaceUnable to execute dex : java heap space

我的电脑有2GB内存,eclipse.ini如下

-startupplugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar--launcher.libraryplugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.100.v20110502-showsplashorg.eclipse.platform-vmC:/Program files/Java/jdk1.7.0/bin/javaw.exe--launcher.XXMaxPermSize512m--launcher.defaultActionopenfile-vmargs-Dosgi.requiredJavaVersion=1.5-xms256m-Xmx700m

我试图在eclipse构建路径设置上将jar放在library上.但它给了我VerifyError.

我需要增加ram内存吗?

解决方法:

您可以尝试通过将-Xmx700m的值更改为更大的值来增加eclipse允许的最大堆空间. Eclipse ini中的此设置目前将JVM限制为700MB.我不确定要分配多少金额.但是,通过反复试验,您应该能够找到适合您的号码.

总结

以上是内存溢出为你收集整理的android java堆空间全部内容,希望文章能够帮你解决android java堆空间所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址:https://www.54852.com/web/1105922.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-05-28
下一篇2022-05-28

发表评论

登录后才能评论

评论列表(0条)

    保存