无法执行DEX:GC开销超过限制在Eclipse [英] Unable to execute dex: GC overhead limit exceeded in Eclipse
问题描述
当我下载了Git项目 OsmAnd ,然后去编译它, Eclipse的返回这些错误:
When I downloaded the Git project OsmAnd and went to compile it, Eclipse returned these errors:
[Dex Loader] Unable to execute dex: GC overhead limit exceeded
[OsmAnd] Conversion to Dalvik format failed:
Unable to execute dex: GC overhead limit exceeded
谷歌和#1说我必须改变 -Xms40m
-Xmx384m
在蚀。 INI
。
<一href="http://stackoverflow.com/questions/5943712/conversion-to-dalvik-format-failed-unable-to-execute-dex-java-heap-space">Conversion到的Dalvik格式失败:无法执行DEX:Java的堆空间
我清理项目,并重新启动Eclipse的,但它并没有帮助。
Google and Stackoverflow said that I must change -Xms40m
-Xmx384m
in eclipse.ini
.
Conversion to Dalvik format failed: Unable to execute dex: Java heap space.
I cleaned project and restarted Eclipse, but it did not help.
我发现此链接:<一href="http://www.cuteandroid.com/tips-for-android-developer-conversion-to-dalvik-format-failed-unable-to-execute-dex-null">Tips对于Android开发者:转换到的Dalvik格式失败:无法执行DEX:空
但我不知道要更改输入,的.jar
从我的项目。
如果有人可以帮助,我可以把这个项目给他们。
I found this link: Tips for Android developer: "Conversion to Dalvik format failed: Unable to execute dex: null"
But I do not know which .jar
from my project to change the input in.
If anyone can help, I can send the project to them.
推荐答案
它可以固定在的eclipse.ini改变VM值。值设置为512和1024,如下:
It can be fixed by changing the VM values in Eclipse.ini. Set the values to 512 and 1024 as below:
openFile
--launcher.XXMaxPermSize
512M
-showsplash
org.eclipse.platform
--launcher.defaultAction
openFile
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms512m
-Xmx1024m
变化的区域图像
The changed area in image
这篇关于无法执行DEX:GC开销超过限制在Eclipse的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!