Date: 2016-08-22 evening, Xian
1. Installing the JDK
Java Version "1.6.0_45"
Java (TM) SE Runtime Environment (build 1.6.0_45-b06)
Java HotSpot (TM) Client VMs (build 20.45-b01, mixed mode, sharing)
2. Download the SDK
Install Android SDK separately, under FQ environment, in order to speed can choose to use Androiddevtools, download file Android-sdk_r24.4.1-windows.zip
Set Environment variables:
Android_home:\projects\react\android-sdk-windows
Path:%systemroot%\system32;%systemroot%;%systemroot%\system32\wbem;%systemroot%\system32\windowspowershell\ V1.0\;%java_home%\bin;d:\program Files\tortoisesvn\bin;%maven_home%\bin;%android_home%\tools;%android%\ Platform-tools;D: \program Files\nodejs
3. Install node. js
Install node. JS on official website, preferably more than 4.1 version, I installed version: Node-v4.5.0-x64.msi
4. Install the react-native command-line tool REACT-NATIVE-CLI
Install git first, then right-click Git Bash here
git clone https://github.com/facebook/react-native.git, because the network original so the operation may fail for the first time, please persist in repeating continuously until successful
Open the cmd command line and execute the following command:
CD D:\PROJECTS\REACT\REACT-NATIVE\REACT-NATIVE-CLI
NPM install-g REACT-NATIVE-CLI
5. Create a project
CD D:\PROJECTS\REACT\REACT-NATIVE\REACT-NATIVE-CLI
React-native Init Android, this operation will also last for a long time, depending on the network, I was the unit performed an afternoon did not respond, delete files after the dorm to re-execute, everything is OK
6.run Android App
React-native Win7 Environment construction