Setting up macOS for Android builds¶
1. Install Homebrew, Java, Python, and CMake¶
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Install Java 8:
brew tap caskroom/versions brew cask install homebrew/cask-versions/adoptopenjdk8
Install Python and CMake:
brew install python3 cmake ninja
2. Install Android Studio¶
2.1 Download Android Studio¶
- Go to https://developer.android.com/studio.
- Click “Download Android Studio".
- Agree to the Terms and Conditions.
2.2 Complete the Installation¶
- Once the download is completed, open the DMG.
- Drag Android Studio.app and drop it on the Applications folder icon.
- Open Android Studio using Finder or Spotlight.
- Follow the steps in the setup wizard.
- Stay on the "Welcome to Android" screen and complete the steps below to complete the installation.
It's sufficient to select the default setup type in the Android Studio Setup wizard. When asked, grant permission to the Intel HAXM installer to enable Android device emulation.
If Intel's HAXM installation fails, please download the latest release from https://github.com/intel/haxm/releases and install it manually.
2.3 Install Android NDK¶
- On the “Welcome to Android” screen, click “Configure” and select “SDK Manager".
- Click on the “SDK Tools” tab.
- Select “NDK” from the list and click OK.
- A prompt appears asking you to confirm the change. Do so by clicking OK.
- Accept the NDK license agreement.
- The NDK component is being installed, grab another drink.
- After the installation has finished, click Finish. The installation is now complete.
In order to run
studio command-line tool must be installed. Please follow the instructions shown when calling
boden for the first time after Android Studio has been installed: Open Android Studio, open a project, and then select Tools => Create Command-Line Launcher.
Please let us know. We're happy to help!