Skip to content

Instantly share code, notes, and snippets.

@EsteveAguilera
Created November 11, 2017 22:53
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save EsteveAguilera/905fef0e5a8c1b98cd0a2b0bcc7ee253 to your computer and use it in GitHub Desktop.
Save EsteveAguilera/905fef0e5a8c1b98cd0a2b0bcc7ee253 to your computer and use it in GitHub Desktop.
Install Android SDK on a Debian server, e.g for a server running Jenkins
# Download the android sdk
wget http://dl.google.com/android/android-sdk_r24.2-linux.tgz
# Uncompress the donwloaded file
tar -xvf android-sdk_r24.2-linux.tgz
# Enter the uncompressed folder
cd android-sdk-linux/tools
# Install all sdk packages
./android update sdk --no-ui
# Add the new directory to your patch
export ANDROID_HOME="/android-sdk-linux"
export PATH="$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools:$PATH"
# Create the licenses directory inside the android-sdk-linux directory
mkdir licenses
# On a computer with AndroidStudio installed and working, navigate to the SDK directory and locate the
# licenses/ directory inside it.
# Copy the entire licenses/ directory content into the Android SDK home directory on the server
# You can use scp command to upload the license file with ssh from your computer (Mac or Linux)
scp android-sdk-license user@xx.x.x.xx:/android-sdk-linux/licenses/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment