2019년 11월 2일 토요일

Compatible side by side NDK version was not found, 그리고 at checkExecSyncError (child_process.js:621:11) at execFileSync (child_process.js:639:15) at runOnAllDevices (C:\petme\node_modules\@react-native-community\cli-platform-android\build\c..

컴파일및 에뮬레이터, 실행시 에러
> Task :app:stripDebugDebugSymbols UP-TO-DATE
Compatible side by side NDK version was not found.

> Task :app:installDebug FAILED
27 actionable tasks: 2 executed, 25 up-to-date

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:installDebug'.
com.android.builder.testing.api.DeviceException: No connected devices!

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

* Get more help at https://help.gradle.org

BUILD FAILED in 1m 46s

error Failed to install the app. Make sure you have an Android emulator running or a device connected. Run CLI with --verbose flag for more details.
Error: Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:installDebug'.
com.android.builder.testing.api.DeviceException: No connected devices!

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

* Get more help at https://help.gradle.org

BUILD FAILED in 1m 46s

    at checkExecSyncError (child_process.js:621:11)
    at execFileSync (child_process.js:639:15)
    at runOnAllDevices (C:\petme\node_modules\@react-native-community\cli-platform-android\build\commands\runAndroid\runOnAllDevices.js:94:39)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
    at async Command.handleAction (C:\petme\node_modules\react-native\node_modules\@react-native-community\cli\build\index.js:164:9)


Compatible side by side NDK version was not found. 
먼저 이 에러는 안드로이드 스튜디오에 들어가서,
File메뉴에, Settings에 들어가서




NDK를 깔았다, 이제 NDK가 INSTALLED 된것을 보고 계십니다.

그리고

BUILD FAILED in 1m 46s 

    at checkExecSyncError (child_process.js:621:11) 
    at execFileSync (child_process.js:639:15) 
    at runOnAllDevices (C:\petme\node_modules\@react-native-community\cli-platform-android\build\commands\runAndroid\runOnAllDevices.js:94:39) 
    at processTicksAndRejections (internal/process/task_queues.js:93:5) 
    at async Command.handleAction (C:\petme\node_modules\react-native\node_modules\@react-native-community\cli\build\index.js:164:9)

이 에러는

C:\사용자\사용자 이름\.gradle\caches

에서

caches 폴더를 삭제한후

제니모션을 실행한후(나는 제니모션을 쓰고 있다)

실행한다

댓글 없음:

댓글 쓰기

react-native run-ios --simulator="iPhone 6"

react-native run-ios   --simulator="iPhone 6"