1.8 KiB
1.8 KiB
id | title | layout | category | permalink | next |
---|---|---|---|---|---|
android-setup | Android Setup | docs | Quick Start | docs/android-setup.html | tutorial |
This guide describes basic steps of the android development environment setup that are required to run React Native android apps on an android emulator. We don't discuss developer tool configuration such as IDEs here.
These instructions only cover installation "from scratch". If you happen to have some old, outdated version of Android SDK make sure to update required packages to the version mentioned below and install all the missing ones and make sure ANDROID_HOME
points to your existing SDK.
Install and configure SDK
- Install the latest JDK.
- Install the Android SDK with
brew install android-sdk
. - Add this to your
~/.bashrc
,~/.zshrc
or whatever your shell uses: export ANDROID_HOME=/usr/local/opt/android-sdk - Start a new shell and run
android
; in the window that appears make sure you check:
- Android SDK Build-tools version 23.0.1
- Android 6.0 (API 23)
- Android Support Repository
- Click "Install Packages".
Install and run Android stock emulator
- Start a new shell and run
android
; in the window that appears make sure you check:
- Intel x86 Atom System Image (for Android 5.1.1 - API 22)
- Intel x86 Emulator Accelerator (HAXM installer)
- Click "Install Packages".
- Configure HAXM.
- Create an Android Virtual Device (AVD) to use with the Android emulator:
- Run
android avd
and click on Create... - With the new AVD selected, click
Start...