React Native Android development environment configuration

In recent years, the front-end of the web is very popular, and the popularity is comparable to the mobile terminal development when I graduated. With the popularity of JavaScript, the mobile terminal has become restless, and ReactNative has suddenly emerged. It is almost necessary to "learn once, develop everywhere", and I have to embrace the changes of the times and start my own ReactNative learning.

 

So first we need to start configuring the environment:

The tools that need to be installed are:

1. Android Studio

2. SDK

3. JDK

4. node.js

5. react native

6. atom editor and its Facebook plugin Nuclide

7. The Chrome browser and its Facebook plugin React Developer Tools


 


1. Install JDK, download from JDK official website, it is basically a one-click installation, without much explanation, the installation is successful; execute it in the terminal

java -version

If there is output similar to the following, the execution is successful

java version "1.8.0_91"
Java(TM) SE Runtime Environment (build 1.8.0_91-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.91-b14, mixed mode)

 

2. Install Android Studio

  Google or Baidu search for the latest version of Android Studio (corresponding to your own operating system) and install it with one click.

  After the installation is successful, configure the SDK location and set the environment variables, refer to: https://www.cnblogs.com/xdp-gacl/p/4329469.html?utm_source=tuicool

 

3. Install Node.js;

  Reference: https://blog.csdn.net/u010053344/article/details/50545304

4. Install React Native

  implement:

npm install -g react-native-cli

   Then check if the installation was successful:

react-native -h

  If the following output is found, the installation is successful:

  Usage: react-native [options] [command]

  Options:

    -V, --version                      output the version number
    -h, --help                         output usage information

 

5. Install Atom and Nuclide

  Download Atom from the official website, install it with one click, and then search for the Nuclide plugin in the install Package and install it.

6. Install the Chrome browser, then search for React Developer Tools in the app store and install the plugin

 

7. Install the Watchman tool and execute it under mac

brew update
brew install watchman

 

At this point, the environment configuration is complete

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325255041&siteId=291194637