导入谷歌播放库后Eclipse挂起

Luc*_*ini 16 eclipse google-maps hang

我已经导入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
Run Code Online (Sandbox Code Playgroud)

在各种帖子中指出的eclipse.ini中增加内存之后,我得到了这个新错误:

Unable to execute dex: GC overhead limit exceeded
GC overhead limit exceeded
Run Code Online (Sandbox Code Playgroud)

在这里我的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
Run Code Online (Sandbox Code Playgroud)

有人能帮我吗?我不知道如何解决这个问题......

小智 5

您必须手动编辑文件-XmsAm-XmxBm参数eclipse.ini以增加内存.试试吧.

/sf/answers/421698371/

  • 嗨,谢谢你的回复.我编辑了这行--launcher.XXMaxPermSize 256m并将其增加到1024m现在可以工作了.我看不到你提到的那些行,你认为最好把它们添加到我的ecplipse.ini中吗?现在一切都有效...... (3认同)