溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點(diǎn)擊 登錄注冊 即表示同意《億速云用戶服務(wù)條款》

eclipse   Unable to execute dex: GC overhead limit exceeded GC overhead limit exceeded解決辦法

發(fā)布時(shí)間:2020-08-08 07:52:06 來源:網(wǎng)絡(luò) 閱讀:548 作者:IT學(xué)無止境 欄目:開發(fā)技術(shù)

有個(gè)老APP在eclipse上,以前打包都很順利,今天好幾次就是打不出來包,總是報(bào)錯(cuò),而且eclipse還經(jīng)常未響應(yīng),非常惡心這軟件。

后來仔細(xì)看了下英文報(bào)錯(cuò)內(nèi)容,大概意思是:無法執(zhí)行dex,GC空間不足,超額

網(wǎng)上查了些資料找到了解決辦法,需要對eclipse做相關(guān)配置,增加空間,如下:


1、關(guān)閉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、之后進(jìn)行修改:修改如下

-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 


向AI問一下細(xì)節(jié)

免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。

AI