安装Android SDK和Build Tools
wget https://dl.google.com/android/repository/sdk-tools-linux-4333796.zip
unzip sdk-tools-linux-4333796.zip
mv tools/ android-tools
mv android-tools/ /usr/local/android-home/
vim /etc/profile
#添加以下几项到末尾,保持退出
export ANDROID_HOME=/usr/local/android-home
export PATH=$PATH:$ANDROID_HOME/android-tools:$ANDROID_HOME/android-tools/bin:$ANDROID_HOME/platform-tools
source /etc/profile
#验证
sdkmanager --list
#build-tools
#在android-home目录下新建android-sdk文件夹
mkdir android-sdk
cd android-sdk
sdkmanager "build-tools;29.0.3"
cd build-tools/29.0.3