Skip to content

Instantly share code, notes, and snippets.

@mlocher
Forked from creativepsyco/buildapp
Last active December 8, 2015 14:39
Show Gist options
  • Save mlocher/dd8b8f187846ff47f73f to your computer and use it in GitHub Desktop.
Save mlocher/dd8b8f187846ff47f73f to your computer and use it in GitHub Desktop.
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