Skip to content

Instantly share code, notes, and snippets.

@eyasuyuki
Last active July 8, 2023 16:55
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eyasuyuki/3274bbe1aa02e65b5df5 to your computer and use it in GitHub Desktop.
Save eyasuyuki/3274bbe1aa02e65b5df5 to your computer and use it in GitHub Desktop.
How to set ANDROID_HOME with home-brew

How to set ANDROID_HOME with homebrew

Install android-sdk

brew install android-sdk

Check install status

brew info android-sdk

android-sdk: stable 24.4.1
Android API libraries and developer tools
https://developer.android.com/index.html
Conflicts with: android-platform-tools
/usr/local/Cellar/android-sdk/24.4.1 (12821 files, 1.2G) *
  Built from source
From: https://github.com/Homebrew/homebrew/blob/master/Library/Formula/android-sdk.rb
==> Caveats
Now run the 'android' tool to install the actual SDK stuff.

The Android-SDK is available at /usr/local/opt/android-sdk

You will have to install the platform-tools and docs EVERY time this formula
updates. If you want to try and fix this then see the comment in this formula.

You may need to add the following to your .bashrc:
  export ANDROID_HOME=/usr/local/opt/android-sdk

Bash completion has been installed to:
  /usr/local/etc/bash_completion.d

Set ANDROID_HOME

export ANDROID_HOME=/usr/local/opt/android-sdk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment