/install_android_sdk.sh Secret
Last active
December 8, 2015 14:39
-
-
Save mlocher/dd8b8f187846ff47f73f to your computer and use it in GitHub Desktop.
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
cd /tmp | |
pwd | |
wget http://dl.google.com/android/android-sdk_r23.0.2-linux.tgz | |
tar zxvf android-sdk_r23.0.2-linux.tgz | |
rm android-sdk_r23.0.2-linux.tgz | |
export ANDROID_HOME="/tmp/android-sdk-linux" | |
export PATH="$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools:$PATH" | |
( sleep 5 && while [ 1 ]; do sleep 1; echo y; done ) | android update sdk --no-ui | |
cd - | |
touch local.properties | |
echo "sdk.dir=$ANDROID_HOME" >> local.properties | |
./gradlew assembleDebug |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment