sudo yum install java-1.8.0-openjdk-devel
cd /opt mkdir androidSdk wget https://dl.google.com/android/repository/sdk-tools-linux-3859397.zip unzip sdk-tools-linux-3859397.zip
vi /etc/profile
export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE HISTCONTROL export PATH=$PATH:/opt/androidSdk/tools/bin
#查看可安装及已安装的包 sdkmanager --list #安装包 sdkmanager "package name"
export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE HISTCONTROL export PATH=$PATH:/opt/androidSdk/tools/bin export PATH=$PATH:/opt/androidSdk/platform-tools
[root@95 www]# adb --version Android Debug Bridge version 1.0.40 Version 28.0.2-5303910 Installed as /opt/androidSdk/platform-tools/adb
参考链接:http://blog.devwiki.net/index.php/2017/07/20/centos-install-android-sdk.html
原文:https://www.cnblogs.com/goobai/p/10828951.html