sensepost / objection

📱 objection - runtime mobile exploration
GNU General Public License v3.0
7.17k stars 825 forks source link

Unable to find aapt. Install it with: apt install aapt (Kali Linux) before continuing - MAC #587

Open matt-b-mitchell97 opened 1 year ago

matt-b-mitchell97 commented 1 year ago

Command objection patchapk -s base.apk is encountering error when trying to find aapt.

I am getting an error saying "Unable to find aapt. Install it with: apt install aapt (Kali Linux) before continuing." but I definitely have aapt and aapt2 present. I have tried adding it to $PATH seemingly unsuccessfully.

All pip3 and brew packages and libraries are upgraded and Gadget is using version 16.0.2.

Error:

Screenshot 2022-11-17 at 14 48 12

Build-tools directory:

Screenshot 2022-11-17 at 14 45 19

BenNo1150 commented 1 year ago

it work my case use vim .zshrc then pass E (for edit) paste. export PATH="$PATH:$HOME/Library/android/sdk/build-tools/33.0.1" to .zshrc