Blue42
Blue42

Reputation: 355

Android aapt can not be found on Mac

I am getting the following error when trying to compile my android project in IntelliJ (v11.1) on MacOSX.


I/O error: Cannot run program "/%PATH_TO_SDK%/android-sdk-macosx/platforms
/android-16/tools/aapt": error=2, No such file or directory


Some places say it is saying I might be using a 64 bit version of the libraries when I need 32 bit but everyone experiencing that problem is using Ubuntu so the solutions I have found are only suited to that.

The weird thing is, it worked this morning when I only had android-16 installed, but after I downloaded the other versions it stopped.

Any help would be appreciated. Can provide more info if needed.

Upvotes: 18

Views: 32018

Answers (3)

Famara
Famara

Reputation: 117

Since I forgot "aapt" location, I print it once in bash_profile and every time I check the content of this file:

vim ~/.bash_profile 

Upvotes: 0

ישו אוהב אותך
ישו אוהב אותך

Reputation: 29794

On MacOS with default Android installation, the current aapt location is inside specific build-tools version. For build-tools 28.0.3, you will find it in the following path:

/Users/userName/Library/Android/sdk/build-tools/28.0.3

Remember to change userName to your username in MacOS.

Upvotes: 13

Jeevan
Jeevan

Reputation: 8772

aapt location has been changed and it can be found at

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

credits to rafalmanka

more info: aapt not found under the right path

Upvotes: 19

Related Questions