1

Today I tried to deploy my android app from my mac to a usb connected device. It has always worked but today eclipse frooze and returned;

Unable to execute dex: Java heap space
Java heap space

After a couple minutes.

My eclipse.ini has these memory properties:

-XX:MaxPermSize=1536m -Xms40m -Xmx1536m

Isn't this enough? And yeah my RAM is 8GB running Mountain Lion.

Cheers!

AndroidXTr3meN
  • 399
  • 2
  • 9
  • 19
  • the `MaxPermSize` doesn't need to be that large, smaller (I have it at 256m) seems to work better for me. Try increasing the Xmx to like 4096m since that is the heap limit – zapl Nov 23 '12 at 15:30
  • I think that error "Unable to execute dex: Java heap space" is not related to eclipse, but the application. You can try put the value in VM arguments (Run -> Run Configuration -> Arguments) to stop this error. – matheuslf Nov 23 '12 at 15:31
  • @matheuslf I cannot find that – AndroidXTr3meN Nov 23 '12 at 15:35
  • Below the option Search you have to click the arrow responsible for running the application. Find the option Run Configuration, click in your application -> Arguments. – matheuslf Nov 23 '12 at 15:38
  • According to http://stackoverflow.com/questions/5943712/conversion-to-dalvik-format-failed-unable-to-execute-dex-java-heap-space increasing eclipse heap is the solution – zapl Nov 23 '12 at 15:41
  • @matheuslf Sorry it does not working – AndroidXTr3meN Nov 23 '12 at 15:42

0 Answers0