Last active
January 8, 2018 04:31
-
-
Save klaeufer/d4c0eb8d2ec832f714ac to your computer and use it in GitHub Desktop.
installation script for Android SDK and JDK 8 on Ubuntu (Cloud9)
This file contains hidden or 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 | |
| # installation script for Android SDK and JDK 8 on Ubuntu | |
| # for Android development with gradlew-based projects | |
| # tested on Cloud9 | |
| ANDROID_HOME=$HOME/lib/android-sdk-linux | |
| ANDROID_SDK_VERSION=24.4.1 | |
| ANDROID_BUILD_TOOLS_VERSION=23.0.2 | |
| ANDROID_API_LEVEL=22 | |
| cd $HOME/lib | |
| wget http://dl.google.com/android/android-sdk_r${ANDROID_SDK_VERSION}-linux.tgz | |
| tar -zxf android-sdk_r${ANDROID_SDK_VERSION}.tgz | |
| echo yes | ${ANDROID_HOME}/tools/android update sdk --filter tools,platform-tools,build-tools-${ANDROID_BUILD_TOOLS_VERSION},android-${ANDROID_API_LEVEL},extra-android-support,extra-android-m2repository,extra-google-m2repository --no-ui --force --no-https --all > /dev/null | |
| rm $HOME/lib/android-sdk_r${ANDROID_SDK_VERSION}-linux.tgz | |
| sudo add-apt-repository ppa:webupd8team/java | |
| sudo apt-get update -qq | |
| sudo apt-get install -qq lib32stdc++6 lib32z1 # Android SDK dependencies | |
| sudo apt-get install oracle-java8-installer |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment