I have added a 2.45mb jar file to my Android eclipse project and now I continue to get “Conversion to Dalvik format failed: Unable to execute dex: Java heap space” no matter what I do.
I have researched online, and was informed to update my eclipse.ini to increase my Java VM heapsizes. I have done this for all the values in eclipse.ini and I continue to get the build error.
Any ideas?
Modify the
-XmsAmand-XmxBmparemeters ineclipse.iniso that they are large enough. The default is-Xms40m-Xmx384m. Try changing them both to-Xms512m-Xmx512mand restart eclipse to see if that helps. If not, continue to increase the values and restart eclipse until either one of two things happens:eclipse.iniis located at/etc/eclipse.iniin Ubuntu (assuming you installed Eclipse from the Ubuntu repositories).For MAC please see:
https://confluence.sakaiproject.org/pages/viewpage.action?pageId=61341742