[HOWTO] Easy installing dependencies of SAB on Mac

I reinstall macOS without TM and my way for installing of Java & Android SDK (not official of SAB).

For install dependencies of SAB I use Home brew.

If you do not have them just paste that in a macOS Terminal

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

First allow versions: brew tap caskroom/versions

Now we needed Java SDK & Android SDK, just run:
brew cask install java8 android-studio

Now launch Android Studio, and finish installation (download SDK), use launchpad
Wait few mins… done.

UPDATE: you not needed full android-studio, you need only android-sdk, better launch only (replace in command up android-studio to android-sdk):
brew cask install android-sdk
but this way will not install you build tools and other that you can install from SAB settings by one click.

Now check that Android SDK found,
ls -ld ~/Library/Android/sdk
if all is OK then copy abs path or launch Android Studio, open preferences ( + <,>) and select Appearance & Behavior => System Settings => Android SDK
and Copy/Paste android-sdk-path

Open preferences of SAB (+<,>)
Code Libraries
JDK Path: …
/Library/Java/JavaVirtualMachines/
in folder choose your jdk 1.8.* (e.g. jdk1.8.0_202.jdk)
… /Contents/Home

Android SDK
SDK Location: /Users/USER/Library/Android/sdk

Thanks for reading.

Idea for SAB: Create package for brew (also will be easier for update)

Installing the whole Android Studio is not needed for SAB. You only need the SDK tools. Is there a way to specify only that part?

Of course you may be using Android Studio for other things.

Thanks for sharing the information.

I wrong, better brew cask install android-sdk

Updating Homebrew...
==> Caveats
You can control android sdk packages via the sdkmanager command.
You may want to add to your profile:

  'export ANDROID_SDK_ROOT="/usr/local/share/android-sdk"'

android-sdk requires Java 8. You can install it with

  brew cask install homebrew/cask-versions/java8

==> Satisfying dependencies
==> Downloading https://dl.google.com/android/repository/sdk-tools-darwin-4333796.zip
######################################################################## 100.0%
==> Verifying SHA-256 checksum for Cask 'android-sdk'.
==> Installing Cask android-sdk
==> Linking Binary 'android' to '/usr/local/bin/android'.
==> Linking Binary 'archquery' to '/usr/local/bin/archquery'.
==> Linking Binary 'avdmanager' to '/usr/local/bin/avdmanager'.
==> Linking Binary 'jobb' to '/usr/local/bin/jobb'.
==> Linking Binary 'lint' to '/usr/local/bin/lint'.
==> Linking Binary 'monkeyrunner' to '/usr/local/bin/monkeyrunner'.
==> Linking Binary 'screenshot2' to '/usr/local/bin/screenshot2'.
==> Linking Binary 'sdkmanager' to '/usr/local/bin/sdkmanager'.
==> Linking Binary 'uiautomatorviewer' to '/usr/local/bin/uiautomatorviewer'.
==> Linking Binary 'emulator' to '/usr/local/bin/emulator'.
==> Linking Binary 'emulator-check' to '/usr/local/bin/emulator-check'.
==> Linking Binary 'mksdcard' to '/usr/local/bin/mksdcard'.
==> Linking Binary 'monitor' to '/usr/local/bin/monitor'.
🍺  android-sdk was successfully installed!

but this installed only sdk without build tools /platform tools/platform api
also forgot about Xcode command line tools…
few moments more…