If you happen to have some old, outdated versions of the Android SDK, be sure to update the required packages to the versions mentioned below and install all the missing ones.
Installing and configuring the SDK
- Install the latest JDK.
- Use
brew install android-sdk to install the Android SDK.
- Add it to
~/.bashrc , ~/.zshrc or any other path used by your shell: Export ANDROID_HOME=/USR/LOCAL/OPT/ANDROID-SDK
- Start a new shell and run it
android ; In the window that appears, check:
- Android SDK Build Tool version 23.0.1
- Android 6.0 (API 23)
- Android Support Repository
- Click "Install Packages".
Install and run the Android native emulator
-
Start a new shell and run it android ; In the window that appears, check:
- Intel x86 native System image (Android 5.1.1-API 22 supported)
- Intel x86 emulator accelerator (HAXM installation)
- Click "Install Packages".
- Configure HAXM.
- Create an Android virtual device (AVD) using the Android simulator:
- Run
android avd and click Create ...
- Select the new AVD, and click
Start...
Install the Android operating environment