2013-12-14 27 views
16

我已經導入google play service library在我的應用程序之一,現在我的Eclipse掛起,當我嘗試只運行這個應用程序時,內存不足。 發佈前沒有錯誤信息,我只是嘗試了幾次,但沒有成功。Eclipse導入後導入谷歌播放庫

Eclipse的告訴我這個消息:

Unable to execute dex: Java heap space 
Conversion to Dalvik format failed: Unable to execute dex: Java heap space 

在各種崗位表示在的eclipse.ini增加內存後,我得到這個新的錯誤:

Unable to execute dex: GC overhead limit exceeded 
GC overhead limit exceeded 

這裏我蝕。 ini:

-startup 
plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar 
--launcher.library 
plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.200.v20120913-144807 
-showsplash 
org.eclipse.platform 
--launcher.XXMaxPermSize 
256m 
--launcher.defaultAction 
openFile 
-vmargs 
-Xms1024m 
-Xmx1024m 
-XX:-UseCompressedOops 
-Dorg.eclipse.swt.browser.DefaultType=mozilla 

有人可以幫我嗎? 我不知道如何解決這個問題?

回答

5

你必須從eclipse.ini文件手動編輯-XmsAm-XmxBm參數來增加內存。這裏試試這個。

https://stackoverflow.com/a/6024262/2896954

+3

嗨,謝謝你的回覆。我已經編輯這行--launcher.XXMaxPermSize 256m並將其增加到1024m,現在可以工作。我看不到你提到過的幾行,你認爲最好把它們添加到我的ecplipse.ini中嗎?現在所有作品... –