Skip to content

Instantly share code, notes, and snippets.

@alistairsykes
Created December 2, 2019 14:20
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save alistairsykes/4887fc09be01461729e3307a01bcec35 to your computer and use it in GitHub Desktop.
description: "Install Android SDK"
steps:
- run:
name: Install Android SDK
command: |
echo 'export ANDROID_HOME="/usr/local/share/android-sdk"' >> $BASH_ENV
echo 'export ANDROID_SDK_HOME="/usr/local/share/android-sdk"' >> $BASH_ENV
echo 'export ANDROID_SDK_ROOT="/usr/local/share/android-sdk"' >> $BASH_ENV
echo 'export PATH="$PATH:${ANDROID_HOME}/emulator:${ANDROID_HOME}/tools:${ANDROID_HOME}/tools/bin:${ANDROID_HOME}/platform-tools"' >> $BASH_ENV
HOMEBREW_NO_AUTO_UPDATE=1 brew tap homebrew/cask
HOMEBREW_NO_AUTO_UPDATE=1 brew cask install android-sdk
yes | sdkmanager --licenses && yes | sdkmanager --update
sdkmanager "tools" "platform-tools"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment