If you’re half way through setting up Android SDK on Fedora 14 (and I imagine all other versions apply) on a 64bit install you’ll get some fairly vague messages back from Ant. Fortunately, they’re quite easy to fix once you know how.
Here’s the message reported by Ant:
Execute failed: java.io.IOException: Cannot run program "/home/adrian/Android/android-sdk-linux_x86/platform-tools/aapt": java.io.IOException: error=2, No such file or directory
When you actually try and run aapt you might get an even scarier looking error:
bash: /home/adrian/Android/android-sdk-linux_x86/platform-tools/aapt: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory
I had a little bit of a panic before I realised that there is officially no 64bit version of the android SDK. After some quick googling, it turns out you need to install some 32bit compat libraries. This process has been documented over on the Fedora Project Wiki, but I’ve posted it here in case that page changes:
yum install glibc.i686 glibc-devel.i686 libstdc++.i686 zlib-devel.i686 ncurses-devel.i686 libX11-devel.i686 libXrender.i686 libXrandr.i68