eclipse   Unable to execute dex: GC overhead limit exceeded GC overhead limit exceeded解决办法(示例代码

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了eclipse   Unable to execute dex: GC overhead limit exceeded GC overhead limit exceeded解决办法(示例代码相关的知识,希望对你有一定的参考价值。

有个老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

以上是关于eclipse   Unable to execute dex: GC overhead limit exceeded GC overhead limit exceeded解决办法(示例代码的主要内容,如果未能解决你的问题,请参考以下文章

Eclipse Unable to install breakpoint in XXX

解决Eclipse中启动Tomcat报unable to start within 45 seconds问题

unable to connect to :5555

eclipse中无法新建Android工程 出现问题:Plug-in org.eclipse.ajdt.ui was unable to load

eclipse   Unable to execute dex: GC overhead limit exceeded GC overhead limit exceeded解决办法(示例代码

Eclipse导入别人的项目报错:Unable to load annotation processor factory 'xxxxx.jar' for project