Skip to content

Instantly share code, notes, and snippets.

@creativepsyco
Created July 23, 2014 08:02
Show Gist options
  • Save creativepsyco/730d8de4332076d82b5e to your computer and use it in GitHub Desktop.
Save creativepsyco/730d8de4332076d82b5e to your computer and use it in GitHub Desktop.
gradle Commands
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