Skip to content

Instantly share code, notes, and snippets.

@emanuelet
Last active April 11, 2016 14:13
Show Gist options
  • Save emanuelet/539e8cfe3d7c450c063d to your computer and use it in GitHub Desktop.
Save emanuelet/539e8cfe3d7c450c063d to your computer and use it in GitHub Desktop.
Codeship Setup Commands for Android Gradle Build
wget http://dl.google.com/android/android-sdk_r24.3-linux.tgz
tar xvzf android-sdk_r24.3-linux.tgz
rm android-sdk_r24.3-linux.tgz
export ANDROID_HOME=$PWD/android-sdk-linux
export PATH="$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools:$PATH"
echo "y" | android update sdk --no-ui --all --filter tools,platform-tools,build-tools-22.0.1,android-22,extra-google-m2repository,extra-google-google_play_services,extra-android-support,139
cd -
touch local.properties
echo "sdk.dir=$ANDROID_HOME" >> local.properties
# ./gradlew clean
./gradlew assembleProdRelease
@emanuelet
Copy link
Author

I'm currently using build tools v22.0.1 and have 2 flavors (prod and release). Customize your script accordingly

@emanuelet
Copy link
Author

you will also probably get an error with aapt on gradle build. That's because there are a couple of 64-bit libraries (lib32stdc++6 and lib32z1) missing. Ask them to install them for you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment