解压缩,新建目录并放到目录:~/Library/Android/sdk/cmdline-tools/latest。cd到目录执行`./sdkmanager "build-tools;32.0.0" "platforms;android-32" "platform-tools"`,
#加~/.bash_profile
ANDROID_HOME="/Users/uuu/Library/Android/sdk"
export ANDROID_HOME
# Setting PATH for ANDROID_HOME
# PATH="$ANDROID_HOME/cmdline-tools/latest/bin:${PATH}"
# export PATH
# export PATH=$PATH:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools
export PATH=${PATH}:${ANDROID_HOME}/platform-tools
AAPT_HOME=/Users/uuu/Library/Android/sdk/
1