tags:

views:

919

answers:

6

I just installed the latest galileo eclipse release. I added the latest adt plugin and configured it to use my android sdk (r4). Unfortunately, the eclipse plugin is wiggin out. for some reason, it can't find(execute?) the android tools. I get this error on the eclipse project:

Error executing aapt. Please check aapt is present at ~/android-sdk-linux_86/platforms/android-1.6/tools/aapt

but here is the output of ls: ls -al ~/android-sdk-linux_86/platforms/android-1.6/tools/aapt -rwxrwxrwx 1 solid solid 3416259 2009-12-18 21:02 /home/solid/android-sdk-linux_86/platforms/android-1.6/tools/aapt

When I try running the program directly, I see the following: ~/android-sdk-linux_86/platforms/android-1.6/tools/aapt bash: /home/solid/android-sdk-linux_86/platforms/android-1.6/tools/aapt: No such file or directory

I just unzipped the sdk and installed the platforms and ls'd it so I know it is there.

I have tried recreating the project from the command line (which works) but when I import it into eclipse I get the same error.

BTW this is linux amd 64

+1  A: 

Something is very wrong here. These two lines contradict themselves:

$ ls -al ~/android-sdk-linux_86/platforms/android-1.6/tools/aapt
-rwxrwxrwx 1 solid solid 3416259 2009-12-18 21:02 /home/solid/android-sdk-linux_86/platforms/android-1.6/tools/aapt 

$ ~/android-sdk-linux_86/platforms/android-1.6/tools/aapt
bash: /home/solid/android-sdk-linux_86/platforms/android-1.6/tools/aapt: No such file or directory

The file just can't exist one instant, then cease to exist in the next.

I don't think this is caused by running on amd64, since I'd suspect that would give you a different, more descriptive error. That being said, make sure you have the ia32-libs installed:

# Assuming you're on Ubuntu
$ apt-get install ia32-libs

My only advice would be to try completely deleting your SDK installation and re-installing it from scratch.

Trevor Johns
A: 

could it have something to do with the fact that I am on a 64bit linux install?

Matt Young
A: 

ok ia32-libs did the trick. I am new to ubuntu and just assumed that package was installed by default. Thanks a ton Trevor.

Matt Young
A: 

This solution worked for me as well. Same error signature. Using kubuntu 4 or 4.1 (not sure which) on 64-bit install with Sun Virtual Box. Installing ia32-libs did the trick.

Calvin
A: 

This worked for me as well. Thanks!

Androider
A: 

thanks very much, it saved me a ton of time. eclipse 3.5 sr2, ubuntu 10.4, android 2.2 rev 8

bikram