18

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.

ρяσѕρєя K
  • 132,198
  • 53
  • 198
  • 213
Blue42
  • 355
  • 2
  • 4
  • 13
  • Ye, I did try that before posting lol – Blue42 Jul 04 '12 at 13:43
  • Is Platform tools SDK package installed? Actually 'aapt' tool should be located in /platform-tools directory. Does it exist there? IDEA tries to find it in /platforms//tools if it cannot be found in /platform-tools folder – ekudel Jul 04 '12 at 13:49
  • It is looking in the wrong place, aapt is in platform-tools as it should be. After restating IntelliJ another 5 times it worked somehow. Doesn't make any sense, NOTHING was changed. Thanks ekudel for your assistance - post a response and I'll give you the tick! – Blue42 Jul 04 '12 at 13:54
  • How to resolve Error executing aapt in Android/Eclipse?: http://stackoverflow.com/q/8008169/1012284 – Padma Kumar Jul 04 '12 at 15:41
  • 1
    I do not have aapt in my platform-tools... – slott Mar 11 '14 at 08:36

2 Answers2

19

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

Community
  • 1
  • 1
Jeevan
  • 8,532
  • 14
  • 49
  • 67
11

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.

ElOjcar
  • 301
  • 2
  • 4
  • 12
ישו אוהב אותך
  • 28,609
  • 11
  • 78
  • 96