unable to execute dex:GC overhead limit exceeded unable to execute dex:java heap space 解决方案

转载地址: http://www.cnblogs.com/garygou/p/3501346.html
项目中需要用自己定义的framework.jar,但是这个jar导入以后,编译apk一致卡在99%,最后Eclipse报告unable to execute dex:GC overhead limit exceeded错误,网上找了解决方案
修改
-Xms128m
-Xmx512m
修改
--launcher.XXMaxPermSize
512m
 
修改后还是不行,Eclipse长时间停留在100%那个进度 后报unable to execute dex:java heap space错误提示, 网上找方案
将厂商的Jar 添加user Library,并把as system Library选上,并引入工程
     建立User Library:Windows->Preference->Java->Build Path->User Library, New and Add Jars
     添加User Library 到工程:Project->Properties->Java Build Path->Libraries->Add Library->User Library
 
Build 运行正常了。

你可能感兴趣的:(android学习笔记)