Even though the ADT bundle provides a 64 bit version, the system requirements indicate that “64-bit distributions must be capable of running 32-bit applications.” I failed to see that when installing it under Fedora Core 20 and was getting the following error from Eclipse:
Error executing aapt: Cannot run program "/home/rchapin/sdks/adt-bundle-linux-x86_64-20131030/sdk/build-tools/android-4.4/aapt": error=2, No such file or directory: error=2, No such file or directory android_sdk line 1 Android ADT Problem
I checked to see if the file was there. Yep. I checked to see if was executable. Yep.
It was only after finding a blog post about it and doing a file
command on it that I noticed that it was a 32 bit executable:
file adt-bundle-linux-x86_64-20131030/sdk/build-tools/android-4.4/aapt
adt-bundle-linux-x86_64-20131030/sdk/build-tools/android-4.4/aapt: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.8, not stripped
All I had to do was install the 32 bit libraries that the binaries are linked against:
yum install glibc.i686 zlib.i686 libstdc++.i686 ncurses-libs.i686 libgcc.i686
Once installed, the error should disappear from Eclipse as it tries to invoke the binaries and do a regular build and/or restarting or cleaning the project should clear the errors.