-
-
Save HazemKhaled/3d2bbb0666da7221111b to your computer and use it in GitHub Desktop.
Install Android-21 5.0.1 with System Image and Google API on Ubuntu server
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# install dependencies | |
sudo apt-get install -yqq libc6-i386 lib32stdc++6 lib32gcc1 lib32ncurses5 lib32z1 | |
# download and unpack Android SDK | |
wget http://dl.google.com/android/android-sdk_r24.3.3-linux.tgz | |
mkdir /home/runner/android-sdk-linux | |
tar xf android-sdk_r24.3.3-linux.tgz -C /home/runner/ | |
rm android-sdk_r24.3.3-linux.tgz | |
# install necessarry componenets | |
# 1 - Android SDK Tools, revision 24.3.3 | |
# 2 - Android SDK Platform-tools, revision 21 | |
# 7 - Android SDK Build-tools, revision 21.1.2 | |
# 26 - SDK Platform Android 5.0.1, API 21, revision 2 | |
# 101- Google APIs, Android API 21, revision 1 | |
echo y | /home/runner/android-sdk-linux/tools/android update sdk -u -a -t 1,2,7,26,101 | |
# setup environment | |
export ANDROID_HOME="/home/runner/android-sdk-linux" | |
export PATH="$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools:$PATH" | |
export LD_LIBRARY_PATH=$ANDROID_HOME/tools/lib:$LD_LIBRARY_PATH |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment