Windows do react native official examples of problems encountered

Source: Internet
Author: User

The version is specified in the 1.android/app/build.gradle file:

Compilesdkversion 23
Buildtoolsversion "23.0.1"

You need to select it in Settings, as shown in:

2. The "Could not find Tools.jar" error was reported because the Java environment variable Java_home was not configured.

3. Under the project directory run React-native run-android, the interface that appears on the phone (using the ADB devices command to confirm that the phone is connected):

4. Above interface, "Dev Settings" after configuring xx.xx.xx.xx:8081, eject:

5. Modify the Index.android.js in the project folder, refresh on the phone, you can see the results of the changes:

Windows do react native official examples of problems encountered

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.