FAILURE: Build failed with an exception.
Where: Script 'C:\react\zinia\node_modules@react-native-community\cli-platform-android\native_modules.gradle' line: 170
What went wrong: A problem occurred evaluating script.
Command
config
unrecognized. Make sure that you have runnpm install
and that you are inside a react-native project.
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 3s
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 'npx.cmd --quiet --no-install react-native config' command from 'null' directory. :ReactNative:Running 'npx.cmd --quiet --no-install react-native config' command from 'null' directory failed.
FAILURE: Build failed with an exception.
Where: Script 'C:\react\zinia\node_modules@react-native-community\cli-platform-android\native_modules.gradle' line: 170
What went wrong: A problem occurred evaluating script.
Command
config
unrecognized. Make sure that you have runnpm install
and that you are inside a react-native project.
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 3s
at checkExecSyncError (child_process.js:621:11)
at execFileSync (child_process.js:639:15)
at runOnAllDevices (C:\react\zinia\node_modules\@react-native-community\cli-platform-android\build\commands\runAndroid\runOnAllDevices.js:94:39)
at buildAndRun (C:\react\zinia\node_modules\@react-native-community\cli-platform-android\build\commands\runAndroid\index.js:158:41)
at C:\react\zinia\node_modules\@react-native-community\cli-platform-android\build\commands\runAndroid\index.js:125:12
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at async Command.handleAction (C:\react\zinia\node_modules\react-native\node_modules\@react-native-community\cli\build\index.js:164:9)
React Native version: <!-- System: OS: Windows 10 10.0.18362 CPU: (4) x64 Intel(R) Core(TM) i7-4610M CPU @ 3.00GHz Memory: 1.48 GB / 7.91 GB Binaries: Node: 12.13.1 - C:\Program Files\nodejs\node.EXE Yarn: 1.19.1 - C:\Users\Dell\AppData\Roaming\npm\yarn.CMD npm: 6.13.2 - C:\Users\Dell\AppData\Roaming\npm\npm.CMD IDEs: Android Studio: Version 3.5.0.0 AI-191.8026.42.35.5900203 npmPackages: react: 16.9.0 => 16.9.0 react-native: 0.61.5 => 0.61.5 -->
System: OS: Windows 10 10.0.18362 CPU: (4) x64 Intel(R) Core(TM) i7-4610M CPU @ 3.00GHz Memory: 1.48 GB / 7.91 GB Binaries: Node: 12.13.1 - C:\Program Files\nodejs\node.EXE Yarn: 1.19.1 - C:\Users\Dell\AppData\Roaming\npm\yarn.CMD npm: 6.13.2 - C:\Users\Dell\AppData\Roaming\npm\npm.CMD IDEs: Android Studio: Version 3.5.0.0 AI-191.8026.42.35.5900203 npmPackages: react: 16.9.0 => 16.9.0 react-native: 0.61.5 => 0.61.5
please help :(