React-Native를 Android V4.2.2 (Genymotion)
과 작동 시키려고하는데 에뮬레이터에서 테스트 할 수 없습니다. 내가 react-native run-android
를 실행했을 때, 나는 로그를React 네이티브 adb 리버스 ENOENT
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
참고이 오류 여기 Could not run adb reverse: spawnSync
입니다 얻을 다음은 SDK 디렉토리가 존재하지 않습니다 saids 로그에, 나는 내가 SDK를 설치해야합니까 다시 확인을 그 디렉토리. 내가 스택 오버플로 포스트에서 다음 단계를 시도
List of devices attached
192.168.56.101:5555 device
adb devices
을 실행할 때
행운 – XPLOT1ON
(나는 쉘을 다시 시작)이 오류는 SDK의 위치가 잘못 보여줍니다. 여기서 SDM 위치를 공유 할 수 있습니까? coz, 나는 당신이 가지고있는 것과 같은 문제를 가지고 있고 js 자체에 익숙하지 않다. 내 env 변수를 업데이트하고 해당 프로젝트를 다시 실행하여 문제를 해결했습니다. – user2906641
인사이드/사용자/팬/라이브러리/Android/sdk (https://www.dropbox.com/s/pediyswug2h6m8r/Screenshot%202016-08-09%2018.08 .31.png? dl = 1) – XPLOT1ON