Ich versuche, React-Native mit Android V4.2.2 (Genymotion)
arbeiten zu arbeiten, aber ich kann die App auf dem Emulator nicht testen. Als ich react-native run-android
lief, bekomme ich diesen Fehler Could not run adb reverse: spawnSync
Reaction Native adb umgekehrt ENOENT
Hier ist ein Protokoll
JS server already running.
Running /User/Pan/Library/Android/sdk/platform-tools/adb reverse tcp:8081 tcp:8081
Could not run adb reverse: spawnSync /User/Pan/Library/Android/sdk/platform-tools/adb ENOENT
Building and installing the app on the device (cd android && ./gradlew installDebug...
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring project ':app'.
> The SDK directory '/User/Pan/Library/Android/sdk' 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: 3.785 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
NOTE: Im Protokoll es SDK-Verzeichnis existiert nicht said, ich überprüft, dass ich das SDK in installiert zu tun habe dieses Verzeichnis.
fand ich mein Android-Emulator, wenn adb devices
List of devices attached
192.168.56.101:5555 device
ich die folgenden Schritte aus Stack-Überlauf Post versucht haben, die Ausführung, aber immer noch habe kein Glück https://stackoverflow.com/a/38536290/4540216
ich die Schritte in den Link gefolgt sind es nicht so gut wie der Befehl, den Sie geschrieben funktioniert (I Neustart der Shell) – XPLOT1ON
Der Fehler zeigt, dass die sdk Lage falsch ist. Können Sie Ihren SDK-Standort hier teilen? coz, ich habe das gleiche Problem, das du hast und ich bin neu bei js selbst. Ich löste es, indem ich meine Umgebungsvariable aktualisierte und dieses Projekt wieder – user2906641
Inside/Benutzer/Pan/Library/Android/sdk (https://www.dropbox.com/s/pediyswug2h6m8r/Screenshot%202016-08-09%2018.08 .31.png? Dl = 1) – XPLOT1ON