1,下载安装SDK
wget http://dl.google.com/android/android-sdk_r24.4.1-linux.tgz
tar xvzf android-sdk_r24.4.1-linux.tgz
mv ./android-sdk-linux ./usr/local/android
2 ,环境变量
vim /etc/profile
export ANDROID_HOME=/usr/local/android
export PATH=$ANDROID_HOME/tools:$PATH
export PATH=$ANDROID_HOME/platform-tools:$PATH
source /etc/profile
3,列出需要安装的资源选择安装
android list sdk --all
android update sdk -u -a -t 207,208
4,安装Gradle
wget https://services.gradle.org/distributions/gradle-6.5-all.zip
unzip ./gradle-6.5-all.zip
5,环境变量
vim /etc/profile
export GRADLE_HOME=/usr/local/gradle-6.5
export PATH=$PATH:/usr/local/gradle-6.5/bin
source /etc/profile