....

2014年8月15日 星期五

[長知識] Android Eclipse Unable to execute dex: GC overhead limit exceeded

有時候寫完專案要匯出成 apk檔的時候
會有錯誤訊息產生
導致不能正常的匯出 apk檔

當遇到
Unable to execute dex: GC overhead limit exceeded
的解決方式是以下

到 Eclipse 的資料夾底下
會有一個執行檔案 eclipse.ini 

點右鍵編輯
修改紅色的地方
即可正常的匯出apk不會error了~~

-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.200.v20140603-1326
-product
org.eclipse.epp.package.standard.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
512M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
512m
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vmargs
-Dosgi.requiredJavaVersion=1.7
-Xms512m
-Xmx1024m

沒有留言:

張貼留言