Saturday, January 22, 2011

android zip align error

if you get an error like this on ant install it might be because your harddisk is full (don't ask)
debug:
[echo] Running zip align on final apk...
[exec] W/zip (): copy of 'res/drawable/x.jpg' failed

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.

Thursday, January 20, 2011

if you get an android build error like this it might just be because you moved some stuff around and left a symlink pointing to to nowhere in the src directory.

BUILD FAILED
android-sdk-linux/tools/ant/ant_rules_r3.xml:395: The following error occurred while executing this line:
/android-sdk-linux/tools/ant/ant_rules_r3.xml:209: com.android.sdklib.build.ApkCreationException: Failed to add project/src