React native common problems in environmental construction

Source: Internet
Author: User

By building the Android environment, we can continue to build our react native environment.

Of course, according to the FB installation process to complete the construction of Rn.

Http://facebook.github.io/react-native/docs/getting-started.html

1.Install Python2

Be sure to install Python2. x.x version, remember not to install more than pythn3+.

2.rn Android SDK If 23.0.1, otherwise will be reported in the directory can not find the corresponding SDK.

3. local.properties This file cannot be found under the directory

You can add the Local.properties file to the root directory of Android.

4.react native errortimeout getting device list.

If this problem arises, you need to go to the ADB in genymotion to set the path of the SDK.

5.more than one Divice/emulator

Download adb and install it and go to the corresponding directory in cmd

viewing devices via ADB devices

Adb-s devicename Shell

For example:

Adb-s emulator-5554 Shell

In multi-device, executing the ADB command typically requires the device to be specified with the parameter-S.

Or see if there are other external Android devices connected to it.

Basically solve the above several, except through react-native init awesomeproject Download rn package file may be more slow outside. The installation should be no problem.

After success as

React native common problems in environmental construction

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.