Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
description: "Install Android SDK"
- 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