我已经在我的一个应用程序中导入了google play service library
,现在当我尝试只运行这个应用程序时,我的eclipse挂起并耗尽了内存。在启动之前没有错误消息,我只是尝试了几次,但没有成功。
Eclipse向我显示以下消息:
Unable to execute dex: Java heap space
Conversion to Dalvik format failed: Unable to execute dex: Java heap space
在增加了eclipse.ini中的内存之后,我得到了这个新的错误:
Unable to execute dex: GC overhead limit exceeded
GC overhead limit exceeded
这是我的eclipse.ini:
-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.200.v20120913-144807
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vmargs
-Xms1024m
-Xmx1024m
-XX:-UseCompressedOops
-Dorg.eclipse.swt.browser.DefaultType=mozilla
有人能帮我吗?我不知道如何解决这个问题。
发布于 2013-12-14 18:02:30
您必须从eclipse.ini
文件中手动编辑-XmsAm
和-XmxBm
参数以增加内存。来试试这个。
https://stackoverflow.com/questions/20581820
复制相似问题