React-native Environment Construction under windows

Source: Internet
Author: User

Follow the MU class network to do the case, build RN environment encountered a lot of problems.

Let's talk about it.

First look at the documentation: Http://reactnative.cn/docs/0.44/getting-started.html#content

Note A few of these words:

Android Studio requires Java development Kit [JDK] version 1.8 or later. You can enter on the command line javac -version to view the JDK version you are currently installing . If the version is not required, you can download it on the official website. Or use the Package Manager to install (for example, choco install jdk8 or apt-get install default-jdk )

In the SDK Tools window, select Show Package Details , and then Android SDK Build Tools tick in the Android SDK Build-Tools 23.0.1 (must be this version)

Configure Java

That means your javac is going to work, no matter what you can see here: http://www.cnblogs.com/yanghuahui/archive/2012/06/29/2570086.html

Configuring the Android SDK

And say your tools are 23.0.1. The new version of as seems to remove the cumbersome Sdkmanager, the default for you to install the SDK, do not need to manually configure. However, the downloaded tools are 25, so you cannot run RN.

Open the ANDROIDSDK directory, here

C:\Users\Administrator\AppData\Local\Android\sdk\build-tools

Add Tools

C:\Users\Administrator\AppData\Local\Android\sdk\platforms

Add SDK here

Can be downloaded from the Internet directly, you can also use the old Sdkmanager downloaded after a copy of the put in

Configuring Gradle without each download

Each run

React-native startreact-native run-android to wait to download gradle-2.14-all.zip, can be resolved through this article. http://blog.csdn.net/hunannanhu/article/details/62236940 Configure the app to run successfullyAfter the installation is successful, there is a red screen pit, remember to shake a shake reference: Http://www.lcode.org/%E5%8F%B2%E4%B8%8A%E6%9C%80%E8%AF%A6%E7%BB%86windows%E7%89%88%E6%9C %ac%e6%90%ad%e5%bb%ba%e5%ae%89%e8%a3%85react-native%e7%8e%af%e5%a2%83%e9%85%8d%e7%bd%ae/ The most detailed version of Windows installed react native environment configuration IP address Remember to use the native real IP, with 127.0.0.1 no use. With the night God binding remember to try more, relatively short time. Reference: Http://www.cnblogs.com/hongguang-kim/p/5917633.html A total of 3 hours wasted. The Pit is dead.

React-native Environment Construction under windows

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.