Skip to content

Instantly share code, notes, and snippets.

@airicbear
Last active August 17, 2021 21:35
Show Gist options
  • Save airicbear/725a3fa32bec9d9d4a294dd72a84610c to your computer and use it in GitHub Desktop.
Save airicbear/725a3fa32bec9d9d4a294dd72a84610c to your computer and use it in GitHub Desktop.
Android Studio setup for M1 Macs

Accepting Android SDK License

With Java 11+, you do not use the sdkmanager from tools. Instead, use cmdline-tools.

Install the command line tools through Android Studio Preferences > Android SDK > SDK Tools and install Android SDK Command-line Tools (latest).

Use Android Studio's packaged JDK.

export JAVA_HOME=/Applications/Android\ Studio.app/Contents/jre/Contents/Home/

Then accept the license.

yes | ~/Library/Android/sdk/cmdline-tools/latest/bin/sdkmanager --licenses

Installing Rosetta 2

For ARM-based Macs you may need to install Rosetta 2.

softwareupdate --install-rosetta
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment