info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag.
Jetifier found 864 file(s) to forward-jetify. Using 12 workers...
info Starting JS server...
adb server version (36) doesn't match this client (41); killing...
* daemon started successfully
info Installing the app...
:ReactNative:Unexpected empty result of running 'node -e console.log(require('@react-native-community/cli').bin);' command.
:ReactNative:Running 'node -e console.log(require('@react-native-community/cli').bin);' command failed.
FAILURE: Build failed with an exception.
* Where:
Script 'C:\SampleProject\node_modules\@react-native-community\cli-platform-android\native_modules.gradle' line: 170
* What went wrong:
A problem occurred evaluating script.
> internal/modules/cjs/loader.js:984 throw err; ^Error: Cannot find module '@react-native-community/cli'Require stack:- C:\SampleProject\android\[eval] at Function.Module._resolveFilename (internal/modules/cjs/loader.js:981:15) at Function.Module._load (internal/modules/cjs/loader.js:863:27) at Module.require (internal/modules/cjs/loader.js:1043:19) at require (internal/modules/cjs/helpers.js:77:18) at [eval]:1:13 at Script.runInThisContext (vm.js:120:20) at Object.runInThisContext (vm.js:311:38) at Object.<anonymous> ([eval]-wrapper:10:26) at Module._compile (internal/modules/cjs/loader.js:1157:30) at evalScript (internal/process/execution.js:94:25) { code: 'MODULE_NOT_FOUND', requireStack: [ 'C:\\SampleProject\\android\\[eval]' ]}
* 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 1s
error Failed to install the app. Make sure you have the Android development environment set up: https://facebook.github.io/react-native/docs/getting-started.html#android-development-environment. Run CLI with --verbose flag for more details.
Error: Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081
:ReactNative:Unexpected empty result of running 'node -e console.log(require('@react-native-community/cli').bin);' command.
:ReactNative:Running 'node -e console.log(require('@react-native-community/cli').bin);' command failed.
FAILURE: Build failed with an exception.
* Where:
Script 'C:\SampleProject\node_modules\@react-native-community\cli-platform-android\native_modules.gradle' line: 170
* What went wrong:
A problem occurred evaluating script.
> internal/modules/cjs/loader.js:984 throw err; ^Error: Cannot find module '@react-native-community/cli'Require stack:- C:\SampleProject\android\[eval] at Function.Module._resolveFilename (internal/modules/cjs/loader.js:981:15) at Function.Module._load (internal/modules/cjs/loader.js:863:27) at Module.require (internal/modules/cjs/loader.js:1043:19) at require (internal/modules/cjs/helpers.js:77:18) at [eval]:1:13 at Script.runInThisContext (vm.js:120:20) at Object.runInThisContext (vm.js:311:38) at Object.<anonymous> ([eval]-wrapper:10:26) at Module._compile (internal/modules/cjs/loader.js:1157:30) at evalScript (internal/process/execution.js:94:25) { code: 'MODULE_NOT_FOUND', requireStack: [ 'C:\\SampleProject\\android\\[eval]' ]}
* 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 1s
at checkExecSyncError (child_process.js:630:11)
at execFileSync (child_process.js:648:15)
at runOnAllDevices (C:\SampleProject\node_modules\@react-native-community\cli-platform-android\build\commands\runAndroid\runOnAllDevices.js:94:39)
at buildAndRun (C:\SampleProject\node_modules\@react-native-community\cli-platform-android\build\commands\runAndroid\index.js:179:41)
at C:\SampleProject\node_modules\@react-native-community\cli-platform-android\build\commands\runAndroid\index.js:133:12
at processTicksAndRejections (internal/process/task_queues.js:97:5)
at async Command.handleAction (C:\SampleProject\node_modules\react-native\node_modules\@react-native-community\cli\build\index.js:182:9)
-------------------------------------
react-native run-android 를 실행하면 위 처럼 오류가 발생합니다.
쌩광부님의 모바일지갑앱 만드는 부분 따라하고 있는데 #1 번부터 막혀서 다음으로 넘어가질 못하고 있습니다.
nod.js 는 12.16.0
java jdk 설치하고
파이썬은 2.7.17
avm 까지 설정을 모두 하였습니다.
그런데, react-native run-android 를 실행하면 node 창이 뜨면서 8081 포트 실행하면서 avm 이 실행되지만 거기서 끝입니다.
어떻게 해결해야하는지 검색을 아무리해도 보이지를 않습니다.
구원을 손길을 부탁 드립니다. ㅜ_ㅜ