Unable to execute dex: GC overhead limit exceeded
Posted 雪残梦影
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Unable to execute dex: GC overhead limit exceeded相关的知识,希望对你有一定的参考价值。
android打包时下面的错误:
Unable to execute dex: GC overhead limit exceeded GC overhead limit exceeded
解决的方法:
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
以上是关于Unable to execute dex: GC overhead limit exceeded的主要内容,如果未能解决你的问题,请参考以下文章
导入项目时,有关[2016-04-03 20:38:02 - Dex Loader] Unable to execute dex: Multiple dex files 问题
Error:Conversion to Dalvik format failed: Unable to execute dex: Multiple dex files define xxxx
jar包冲突--Conversion to Dalvik format failed: Unable to execute dex: Multiple dex files define Lcom/an
Android Unable to execute dex: method ID not in [0, 0xffff]: 65536 问题解决方法
Conversion to Dalvik format failed: Unable to execute dex: Cannot merge new index 69457 into a non-j