views:

427

answers:

3

I just installed NetBeans and the Android SDK following the instructions here. I am running Ubuntu 9.10 (Karmic). NetBeans is 6.7.1. The Android SDK is version 7.

When I try to compile a new project it gives me the following error:

Execute failed: java.io.IOException: Cannot run program "/home/oz/android-sdk/platforms/android-7/tools/aapt" (in directory "/home/oz/projects/ArmyBuilder/android"): java.io.IOException: error=2, No such file or directory

When I go into that directory, I see that the file does exist and it has proper permissions to be executable by anyone, yet even bash can't find it!

oz@Ivory-Coast:~/android-sdk/platforms/android-7/tools$ pwd
/home/oz/android-sdk/platforms/android-7/tools
oz@Ivory-Coast:~/android-sdk/platforms/android-7/tools$ ls -l
total 4652
-rwxrwxrwx 1 oz oz 3472784 2010-04-20 18:16 aapt
-rwxrwxrwx 1 oz oz 1050336 2010-04-20 18:16 aidl
-rwxrwxrwx 1 oz oz  213698 2010-04-20 18:16 dexdump
-rwxrwxrwx 1 oz oz    2497 2010-04-20 18:16 dx
drwxr-xr-x 2 oz oz    4096 2010-04-20 18:16 lib
-rw-r--r-- 1 oz oz   10800 2010-04-20 18:16 NOTICE.txt
oz@Ivory-Coast:~/android-sdk/platforms/android-7/tools$ ./aapt
bash: ./aapt: No such file or directory
oz@Ivory-Coast:~/android-sdk/platforms/android-7/tools$ 

Googling for this error turns up a few other people having this same issue (http://www.mentby.com/erisa/aapt-not-found.html, http://www.helloandroid.com/content/file-not-found-hello-world-application) both with no responses.

A: 

I'm having the same trouble, although with Eclipse & ADT Did you find the problem? Ubuntu 10.04, AMD64

Ian
+2  A: 

Solution here: http://ubuntuforums.org/showthread.php?t=1317567

Summary:

apt-get install ia32libs

HTH

Mark Renouf
A: 

I found the solution here:

http://stackoverflow.com/questions/1943746/android-eclipse-plugin-cant-find-valid-paths

Thanks!

Androider