eclipse产生错误:Unable to execute dex: GC overhead limit exceeded
2014-09-02 15:43
507 查看
Android打包时下面的错误:
Unable to execute dex: GC overhead limit exceeded
GC overhead limit exceeded
产生这种错误是发生在GC占用大量时间为释放很小空间的时候发生的,这个是JDK6新添的错误类型。
追究发生这种问题的原因,很大可能是由于添加了相同的jar包导致,你就得排查是否添加了外部ar和 libs下jar一样的文件,这个是导致这种错误产生的一大主要方向。
如果排查了上面的这种结论,我就只能给你一个建议 修改eclipse参数
打开eclipse所在目录下该文件修改 \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、之后进行修改:修改如下
-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
Unable to execute dex: GC overhead limit exceeded
GC overhead limit exceeded
产生这种错误是发生在GC占用大量时间为释放很小空间的时候发生的,这个是JDK6新添的错误类型。
追究发生这种问题的原因,很大可能是由于添加了相同的jar包导致,你就得排查是否添加了外部ar和 libs下jar一样的文件,这个是导致这种错误产生的一大主要方向。
如果排查了上面的这种结论,我就只能给你一个建议 修改eclipse参数
打开eclipse所在目录下该文件修改 \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、之后进行修改:修改如下
-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
相关文章推荐
- eclipse出现"Unable to execute dex: GC overhead limit exceeded GC overhead limit exceeded"错误的解决办法
- android Eclipse执行项目提示错误: unable to execute dex: GC orerhead limit exceeded
- Eclipse unable to execute dex:GC overhead limit exceeded
- Android打包时下面的错误:Unable to execute dex: GC overhead limit exceeded
- eclipse Unable to execute dex: GC overhead limit exceeded GC overhead limit exceeded解决办法
- eclipse:Unable to execute dex: GC overhead limit exceeded
- eclipse出现Unable to execute dex: GC overhead limit exceeded
- 解决:Unable to execute dex: GC overhead limit exceeded
- 解决:Unable to execute dex: GC overhead limit exceeded
- unable to execute dex:GC overhead limit exceeded java heap space
- unable to execute dex:GC overhead limit exceeded unable to execute dex:java heap space 解决方案
- Unable to execute dex: GC overhead limit exceeded
- Conversion to Dalvik format failed: Unable to execute dex: GC overhead limit exceeded
- 解决:Unable to execute dex: GC overhead limit exceeded
- 解决:Unable to execute dex: GC overhead limit exceeded
- -------------Unable to execute dex: GC overhead limit exceeded
- Unable to execute dex: GC overhead limit exceeded GC overhead limit exceeded
- Unable to execute dex: GC overhead limit exceeded
- android运行时出现 Unable to execute dex: GC overhead limit exceeded 的错误。
- 在MAC下解决MAC unable to execute sex :GC overhead limit exceeded GC overhead的问题