React-native Environment Construction encounters problems

Source: Internet
Author: User

1.

Task ': App:compiledebugjavawithjavac '. > Could not find Tools.jar


Is that the Java environment is not configured

D:/java\jdk1.8.0_66 ".

2.


D:\android\workspace\awesomeproject>react-native run-android JS Server already running.
Building and installing the app on the device (CD Android && Gradlew.bat installdebug ...


Failure:build failed with a exception.


* What went wrong:
A problem occurred configuring project ': App '.

> failed to find target with hash string ' android-23 ' in:d:\android\sdk\platforms


The problem is that the ANDROID23 version of the SDK is not installed or the environment variable configuration error

D:\Android\sdk\platforms This directory does not have the Android 23 version of the SDK



3.


SDK location not found. Define location with Sdk.dir in the Local.properties file or with a android_home environment.
The Android environment variable configuration is not configured.  
D:\Android\sdk\platform-tools
To sum up, the above 2 questions are configured in the PATH environment variables:
D:\Android\sdk\;D: \android\sdk\platform-tools
If also reported Android23 's error indicates that you did not download the Android23 SDK, use Android studio to download it.
4.
Java.lang.RuntimeException:java.util.concurrent.ExecutionException:
Java.lang.RuntimeException:Could not connect to Development server.

Try the following to fix the issue:
Ensure that's packager server is running
Ensure that your device/emulator are connected to your machine and has USB
Debugging Enabled-run ' adb devices ' to ' a list of connected devices
If you ' re on a physical device connected to the same machine,

Run ' adb reverse tcp:8081 tcp:8081 ' to forward requests from your device


Main is no react-native not connected to the server

The real thing, shake it open.

Setup interface to find

Dev Setting

Configure your own computer's IP address 192.168.1.101:8081

Then shake the phone again reload JS can


The millet phone does not appear when shaking the settings menu needs to enter settings--more applications--Find your APK rights Management-the bottom to find the Display suspension window allows.

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.