您的位置:首页 > 编程语言 > Java开发

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

2017-06-29 09:55 489 查看
有个老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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: