MAC_ input terminal aapt error prompt command "command not found"

problem:

Aapt terminal uses MAC instruction "aapt dump badging xxx / xxx / xxx.apk" error prompt "command not found" when viewing apk package name and activity, as shown below:

solve:

The issue is not configured aapt environment variables cause, and PATH in .bash_profile configuration AAPT_HOME in can be solved.

Prerequisite: Configuring Android SDK is installed

(1) Open the configuration file (open terminal)

Open command: open .bash_profile

(2) Configuration Environment Variables

Environment variables are as follows:

export AAPT_HOME=/Users/xmly/Desktop/auto/UItest/app_autotest/android-sdk-macosx/build-tools/29.0.2

export PATH=$PATH:$AAPT_HOME 

Remarks:

After a file path to AAPT_HOME build-tools (drag the file to the terminal may obtain a file path)

After the path variable from ":" separated, added directly after the original path ": $ AAPT_HOME" to

 (3) the configuration file to take effect

The entry into force command: source .bash_profile

(4) Verify the configuration successfully

Verify command: aapt (aapt occurs if the configuration information described successful)

 

Guess you like

Origin www.cnblogs.com/mini-monkey/p/11694340.html