Sunday, October 18, 2020

[DevOps] AndroidSDK for Linux

Hello, it's my script for the installation of Android SDK to CentOS. 

# Script for install Android SDK to CentOS
# based on:
# and :

yum install java -y
yum install android-tools -y

cd /opt
mkdir /sdks
cd /sdks
mkdir -p android-sdk-linux
cd android-sdk-linux

# @see
wget --quiet
rm -f
yes | tools/bin/sdkmanager --licenses
tools/bin/sdkmanager "tools" "platform-tools" "extras;google;m2repository"

echo 'export ANDROID_HOME=/opt/sdks/android-sdk-linux' >> ~/.bashrc
echo 'export PATH=${PATH}:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools' >> ~/.bashrc

#let's check
cat ~/.bashrc

No comments:

Post a Comment