eclipse   Unable to execute dex: GC overhead limit exceeded GC overhead limit exceeded解决办法

来源:互联网 发布:阿尔法狗算法公开 编辑:程序博客网 时间:2024/05/17 00:10

有个老APP在eclipse上,以前打包都很顺利,今天好几次就是打不出来包,总是报错,而且eclipse还经常未响应,非常恶心这软件。

后来仔细看了下英文报错内容,大概意思是:无法执行dex,GC空间不足,超额

网上查了些资料找到了解决办法,需要对eclipse做相关配置,增加空间,如下:


1、关闭Eclipse 打开D:\eclipse\eclipse.ini

-startup

plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar

--launcher.library

plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.200.v20120913-144807

-product

org.eclipse.epp.package.jee.product

--launcher.defaultAction

openFile

--launcher.XXMaxPermSize

512M

-showsplash

org.eclipse.platform

--launcher.XXMaxPermSize

512m

--launcher.defaultAction

openFile

-vmargs

-Dosgi.requiredJavaVersion=1.5

-Dhelp.lucene.tokenizer=standard

-Xms40m

-Xmx512m

2、之后进行修改:修改如下

-vm

C:\Program Files\Java\jdk1.7.0_21\bin\javaw.exe

-startup

plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar

--launcher.library

plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.200.v20120913-144807

-product

org.eclipse.epp.package.jee.product

--launcher.defaultAction

openFile

--launcher.XXMaxPermSize

512M

-showsplash

org.eclipse.platform

--launcher.XXMaxPermSize

512m

--launcher.defaultAction

openFile

-vmargs

-Dosgi.requiredJavaVersion=1.5

-Dhelp.lucene.tokenizer=standard

-Xms256m

-Xmx1024m

3、保存,打开Eclipse 


本文出自 “移动平台开发” 博客,请务必保留此出处http://liuxudong1001.blog.51cto.com/10877072/1875685

阅读全文
0 0
原创粉丝点击