Android development with Intellij under Ubuntu 12.041 on 64 bit machines

I started with an Intellij Android project that worked on another machine, but when i rebuilt the project i got an error saying

"android-apt-compiler:/pk/android/android-sdk-linux/platform-tools/aapt": error=2, No such file or directory"

it turned out that the problem was that the aapt is a 32 bit program, so when i did

sudo apt-get install ia32-libs

and restarted intellij things worked again, and I could build my project again.

this way I installed loads of 32bit libraries i probably did not need, but it worked.

unix command file on the aapt file combined with google found answers related to eclipse (where a corresponding error message was much more useful, but mentioning a missing library) helped me find this out.

was this useful for anyone?


What error message do you get in Eclipse?


I did not try eclipse myself, but i found several references to aapt problems experiences with eclipse after googling for solutions.

one of them was here:
that article does not show the output as coming from eclipse. sorry, i cannot find the article which originally helped me.

when i tried running the aapt tool directly fro mthe command line, nothing happened. not output at all, so i did not understand this to be a library problem.


I've created an issue in our tracker (about useless message), please follow


ok :-)

but the issue should perhaps indicate that this solution is only for 64 bit linux systems

and the path should be something like "android-apt-compiler:<path to android sdk>/android-sdk-linux/platform-tools/aapt": error=2, No such file or directory

"pk/android" is just where i have happened to store the android sdk files.

and - installing all of ia32-libs is overkill for fixking this error. i dont know which files were missing, but there is a link to a similar problem with eclipse:

-- nils


Please sign in to leave a comment.