1

I imported a android project and it seemed like everything worked (I can see all the files in the project). When I try to run it I get the following error Unable to execute dex: Java heap space Java heap space

Ted pottel
  • 6,869
  • 21
  • 75
  • 134

1 Answers1

1

Referring to @JohnnyLambada in this thread try to

Modify the -XmsAm and -XmxBm paremeters in eclipse.ini so that they are large enough. The default is -Xms40m -Xmx384m. Try changing them both to -Xms512m -Xmx512m and restart eclipse to see if that helps. If not, continue to increase the values and restart eclipse until either one of two things happens:

Your build completes. Eclipse won't restart because you don't have enough memory. eclipse.ini is located at /etc/eclipse.ini in Ubuntu (assuming you installed Eclipse from the Ubuntu repositories) or search where you put your eclipse For Windows.

Community
  • 1
  • 1
K_Anas
  • 31,226
  • 9
  • 68
  • 81