I have norrowed the error down to this from a larger script and I'm getting the error "No such file or directory" when I try to execute a file which exist and I have the correct permissions for.
fabe@devweb:~$ ls -la /usr/local/android-sdk-linux/build-tools/22.0.0/aapt
-rwxr-xr-x 1 fabe fabe 1264873 Mar 17 10:12 /usr/local/android-sdk-linux/build-tools/22.0.0/aapt
fabe@devweb:~$ /usr/local/android-sdk-linux/build-tools/22.0.0/aapt
-bash: /usr/local/android-sdk-linux/build-tools/22.0.0/aapt: No such file or directory
sh /usr/local/android-sdk-linux/build-tools/22.0.0/aapt
, and if that fails, put a sudo on the front. you may be losing read on the path leading up to the file.