2012-06-26 68 views
3

當我包含超過5個罐子時,由於堆內存的原因,eclipse在編譯時停止工作。android java堆空間

An internal error occurred during: "Activity Monitor Job". 
Java heap space 
Unable to execute dex : java heap space 

我的電腦有2GB內存和的eclipse.ini是如下

-startup 
plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar 
--launcher.library 
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.100.v20110502 
-showsplash 
org.eclipse.platform 
-vm 
C:/Program Files/Java/jdk1.7.0/bin/javaw.exe 
--launcher.XXMaxPermSize 
512m 
--launcher.defaultAction 
openFile 
-vmargs 
-Dosgi.requiredJavaVersion=1.5 
-Xms256m 
-Xmx700m 

我試圖把罐子上圖書館Eclipse的構建路徑設置。但它給了我VerifyError。

我是否需要增加RAM內存?

+0

[這](http://stackoverflow.com/questions/5943712/conversion-to-dalvik-format-failed-unable-to-execute-dex -java-heap-space)的帖子可能會有所幫助。 – Jeshurun

+0

你能解決這個問題嗎? – Michael

回答

3

您可以嘗試通過將-Xmx700m的值更改爲更大的值來增加eclipse所允許的最大堆空間。 Eclipse ini中的此設置目前將JVM限制爲700MB。我不確定要告訴你分配的金額。但是,通過反覆試驗,您應該能夠找到適合您的號碼。

+0

你可以詳細說明如何在哪裏做這種更新,考慮noobs和幫助 –