-
npm install -g react-native-cli
-
Download and install Android Studio
-
Choose Custom installation when running Android Studio for the first time. Make sure the boxes next to all of the following are checked:
- Android SDK
- Android SDK Platform
- Android Virtual Device
- Click "Next" to install all of these components, then configure VM acceleration on your system.
- Click Options → System Settings → Android SDK:
- Select "SDK Platforms" and check:
- Google APIs
- Intel x86 Atom System Image
- Intel x86 Atom_64 System Image
- Google APIs Intel x86 Atom_64 System Image
- Select "SDK Tools" and check:
- Android SDK Build-Tools 23.0.1
-
click "Apply"
-
Set up the ANDROID_HOME environment:
- export ANDROID_HOME=${HOME}/Android/Sdk
- export PATH=${PATH}:${ANDROID_HOME}/tools
- export PATH=${PATH}:${ANDROID_HOME}/platform-tools
- Install Prerequisites:
- sudo apt-get install automake
- sudo apt-get install autoconf
- sudo apt-get install python-dev
- Install watchman in folder with project:
- git clone https://github.com/facebook/watchman.git
- cd watchman
- git checkout v4.7.0
- ./autogen.sh
- ./configure
- make
- sudo make install
-
npm install
-
react-native link
-
react-native run-android
Execution failed for task ':app:compileDebugJavaWithJavac'. Could not find tools.jar:
sudo apt-get install default-jdk`
This project is licenced under the MIT License.