Skip to content

Instantly share code, notes, and snippets.

@srmds
Forked from patrickhammond/android_instructions.md
Last active November 21, 2017 01:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save srmds/55532e8782fb5d1f7383a78dee393ebd to your computer and use it in GitHub Desktop.
Save srmds/55532e8782fb5d1f7383a78dee393ebd to your computer and use it in GitHub Desktop.
Bare Android sdk setup MacOS

Bare essentials Android SDK installation, forked from: https://gist.github.com/patrickhammond/4ddbe49a67e5eb1b9c03 and modified to own needs

Prerequisites:

Make sure the doctor is happy (do what it tells you):

$ brew doctor

Use Homebrew to install Android dev tools:

Optional:

$ brew install ant
$ brew install maven
$ brew install gradle

Mandatory:

$ brew install Caskroom/cask/android-sdk
$ brew install Caskroom/cask/android-ndk

Install all of the Android SDK components (you will be prompted to agree to license info and then this will take a while to run):

$ android update sdk --no-ui

Add the following environment variables:

$ export ANDROID_HOME=/usr/local/opt/android-sdk \
ANDROID_NDK_HOME=/usr/local/opt/android-ndk

Periodically run these commands again to ensure you're staying up to date:

$ brew update
$ android update sdk --no-ui
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment