Reputation: 355
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
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
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
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