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.
Once you have downloaded the SDK Build Tools, you can find AAPT2 located in android_sdk /build-tools/ version / . Because a newer revision of the Android SDK Build Tools is not released very often, the version of AAPT2 included in your SDK Build Tools might not be the latest.
Navigate to “Appearance & Behavior” > “System Settings” > “Android SDK” and now you can see the SDK versions that were installed in the “API Level” and “Name” columns (focus on “API Level”).
To install Android Studio on your Mac, proceed as follows: Launch the Android Studio DMG file. Drag and drop Android Studio into the Applications folder, then launch Android Studio. Select whether you want to import previous Android Studio settings, then click OK.
Installation on Mac OS X The Android Studio package will then be installed into the Applications folder of the system, a process which will typically take a few minutes to complete.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With