Friday, January 21, 2011

android ant heap space

forgot where i had set this and googling again took it's time so here is the fix for the
UNEXPECTED TOP-LEVEL ERROR
java.lang.OutOfMemoryError: Java heap space
error in the dex converting stage:

edit the dx file ... e.g. platforms/android-1.6/tools/dx (might be dx.bat or something on other OSs)
and activate the javaOpts="-Xmx256M" line
kinda annoying that this kind of stuff is necessary both in the android build process and in the java world in general.

0 Comments:

Post a Comment

<< Home