aapt not found under the right path

65,159

Solution 1

It seems that cleaning this specific project doesn't work but cleaning all open project does the trick.

I leave this question if someone else get this issue.

Solution 2

I found that this could be fixed by installing the ia32-libs package as the Android sdk requires 32-bit libraries.

Solution 3

I solved this problem by adding a / after my android-sdk path in...

Eclipse->preferences->android->SDK Location:

Solution 4

The aapt location has been changed recently. You can find it under:

/path/to/adt/sdk/buid-tools/android-[version]/aapt

Solution 5

In the terminal execute this command :

chmod a+x platform-tools/aapt

it solved the problem for me

(in 64bit you have to install ia32-libs with this command : sudo apt-get install ia32-libs)

Share:
65,159
WarrenFaith
Author by

WarrenFaith

Updated on June 13, 2020

Comments

  • WarrenFaith
    WarrenFaith about 4 years

    I just updated ADT, than the SDK and now I have in only one project the issue, that my aapt isn't found

    Error executing aapt. Please check aapt is present at /opt/android/platform-tools/aapt
    

    The path is correct, I checked twice and more times.

    -rwxrwxrwx 1 martin martin 3,5M 2010-12-08 10:41 /opt/android/platform-tools/aapt
    

    I can start aapt via console, the permissions are 777, I restarted eclipse, closed/reopened the project, restarted adb and finally my Ubuntu.

    Some ideas why this might happen only at one project?

  • arinte
    arinte over 13 years
    Very strange, but that did it for me too. Seems google needs to do some work on the plugin.
  • WarrenFaith
    WarrenFaith over 13 years
    I updated both but couldn't get it to work without the specific clean up of all projects
  • Computerish
    Computerish over 13 years
    Worked perfectly! Thanks! Seems like there have been more issues since the update to the latest SDK.
  • Serapth
    Serapth over 13 years
    Odd, exact same Behavior for me. Updated to 8.0.1 ( win x64 ) and got aapt error, did a eclipse -clean and nothing, but doing a project->clean... fixed it. Thanks! Don't think I would have found this one without your suggestion.
  • hoserdude
    hoserdude about 13 years
    Same issue on Mac Snow Leopard, clean of all projects did the trick.
  • mrhassell
    mrhassell about 13 years
    Resolve this by opening the Android SDK and AVD manager. Have a look if anything has a broken link icon in the installed package list and regardless, to clear the errors, update all and check under available packages for everything from the Android repository and take all the google third party add-ons.
  • aiham
    aiham almost 13 years
    Wouldn't have guessed that using 64bit was the problem if I hadn't seen your comment. Thanks.
  • Matt
    Matt over 12 years
    Thank you. I had to install the ia32-libs and then run a clean on the project.
  • dm03514
    dm03514 over 12 years
    i was hoping it was this simple!! ty.
  • Sandip Armal Patil
    Sandip Armal Patil about 12 years
    you need to write your answer in understandable format. try to avoiding one line Answer and be formatted.
  • Azhar Khorasany
    Azhar Khorasany about 11 years
    And where do we have to type this?
  • Vladimir Ivanov
    Vladimir Ivanov about 9 years
    Thank you, my case. But please check the name of the library, its 'lib32z1'
  • smac89
    smac89 about 8 years
    @AzharKhorasany chmod +x /location/of/sdk/build-tools/your sdk version/aapt