Android SDK on 64bit Fedora 14

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: Cannot run program "/home/adrian/Android/android-sdk-linux_x86/platform-tools/aapt": 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/ 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

Tagged with: ,
Posted in Development, Linux

Leave a Reply

Your email address will not be published. Required fields are marked *


You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">