2017-09-27 7 views
0

Ich erstelle die einfache React Native Project.Android Reagieren Native Build fehlgeschlagen

Schritt 1. C:> reagieren-native init AwesomeProject

Schritt 2. C:> cd AwesomeProject

Schritt 3. C:> reagieren-native Lauf android

Danach sah ich den folgenden Fehler.

C:\Users\Smith\AwesomeProject>react-native run-android 
Scanning 575 folders for symlinks in C:\Users\Smith\AwesomeProject\node_modul 
es (13ms) 
Starting JS server... 
Building and installing the app on the device (cd android && gradlew.bat install 
Debug)... 

FAILURE: Build failed with an exception. 

* What went wrong: 
A problem occurred configuring project ':app'. 
> The SDK directory 'C:\Users\Smith\AwesomeProject\android\C:UsersSmithApp 
DataLocalAndroidsdk' does not exist. 

* Try: 
Run with --stacktrace option to get the stack trace. Run with --info or --debug 
option to get more log output. 

BUILD FAILED 

Total time: 4.774 secs 
Could not install the app on the device, read the error above for details. 
Make sure you have an Android emulator running or a device connected and have 
set up your Android development environment: 
https://facebook.github.io/react-native/docs/android-setup.html 

Danke !!

Antwort

0

Android SDK Pfad in Ihrer Umgebung ist nicht korrekt.

+0

Wo kann ich das überprüfen? – ieQsan

+0

Ihr sdk Pfad ist ''C: \ Benutzer \ Smith \ AwesomeProject \ android \ C: UsersSmithApp DataLocalAndroidsdk'', es ist kein gültiger Wert – x13945

Verwandte Themen