yum install -y unzip zip 安装unzip zip
yum -y install wget 安装 wget
sudo mkdir /opt/gradle
sudo touch xxx 新建文件
wget https://downloads.gradle.org/distributions/gradle-4.6-bin.zip
unzip -d /opt/gradle gradle-4.6-bin.zip
sudo vim /etc/profile
PATH=$PATH:/opt/gradle/gradle-4.6/bin
export PATH
Esc shift+; x
yum install git 安装git
wget https://dl.google.com/android/android-sdk_r24.4.1-linux.tgz 下载android sdk(先创建android sdk存放的文件夹)
tar -zvxf android-sdk_r24.4.1-linux.tgz 解压android sdk
ANDROID_HOME=/opt/android_sdk/android-sdk-linux
export PATH=$ANDROID_HOME/tools:$PATH
sudo chmod a+x /opt/workspace/mainproject/mainproject 给文件夹开权限
sudo chmod 777 /opt
sudo ./gradlew aR --info --debug --stacktrace
android list sdk -a 查看android sdk
android update sdk -u -t 46 -a 更新android sdk(46是前面的序号)
rpm -qa|grep jdk 查看安装的jdk
yum -y remove java-xxx 卸载jdk
yum install -y java-1.8.0-openjdk-devel.x86_64 安装jdk