The procedure for setting up Android Studio on MacOS is a bit confusing. Use these steps to get it working.
-
Download and install Android Studio
-
Start Android Studio, choose to not import settings if you are asked about this
-
During the installation wizard, set things up with the default settings
-
Preferences (⌘,) and search for SDK. At the time of writing, it's under Appearance & Behavior -> System Settings -> Android SDK
-
Make sure Android SDK Command-line Tools is installed (under SDK Tools)
-
Accept licenses
JAVA_HOME="/Applications/Android Studio.app/Contents/jre/jdk/Contents/Home" ~/Library/Android/sdk/cmdline-tools/latest/bin/sdkmanager --licenses
-
Run
make open-android
or follow the building instructions for manual building