Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Command aapt is not found

I wanted to use the aapt command on a Mac with the android sdk (folder /build-tools/24.0.1). But whenever I try to use the command I get the message that the command is not found (aapt/aapt2). This doesn't work neither in the Terminal nor in Android Studio.

If I list the available commands in the 24.0.1. folder in the Terminal, there is a star sign next to both commands, which is described as:

A star (*) next to a name means that the command is disabled.

How can I enable these commands again? Updating the build-tools didn't help.

like image 304
Eve Avatar asked Sep 27 '16 22:09

Eve


People also ask

Where is AAPT located?

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.

How do I run AAPT?

open a terminal, go to the tools / directory, run the command. / Aapt.


1 Answers

Check your path and check if it is correct.

Just edit your ~/.bash_profile add this line:

export PATH=$PATH:/PATH/TO/android-sdk-macosx/build-tools/x.x.x
like image 138
josedlujan Avatar answered Oct 11 '22 15:10

josedlujan