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?

5 comments
Comment actions Permalink

What error message do you get in Eclipse?

0
Comment actions Permalink

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: http://stackoverflow.com/questions/7056914/android-eclipse-installation-on-ubuntu-11-04-aapt-and-adb-not-working-properly
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.

0
Comment actions Permalink

I've created an issue in our tracker (about useless message), please follow http://youtrack.jetbrains.com/issue/IDEA-99005

0
Comment actions Permalink

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:

http://blog.timmattison.com/archives/2011/11/02/how-to-install-googles-android-eclipse-plugin-and-or-adb-on-64-bit-debian-ubuntu/

-- nils

0
Comment actions Permalink

Hi we develop andoid apps..
Android developer

0

Please sign in to leave a comment.