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.