react-native: bugs on Windows with v0.60
react-native run-android failed on Windows
React Native version:
info Fetching system and libraries information...
System:
OS: Windows 10
CPU: (4) x64 Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz
Memory: 1.71 GB / 7.91 GB
Binaries:
Node: 10.15.3 - C:\Users\zenz\scoop\apps\nodejs-lts\current\node.EXE
Yarn: 1.16.0 - C:\Users\zenz\scoop\apps\yarn\current\Yarn\bin\yarn.CMD
npm: 6.4.1 - C:\Users\zenz\scoop\apps\nodejs-lts\current\npm.CMD
SDKs:
Android SDK:
Android NDK: 20.0.5594570
Steps To Reproduce
- react-native init test_app
- cd test_app
- react-native run-android
Error message as below:
FAILURE: Build failed with an exception.
* Where:
Script 'C:\Users\zenz\programs\test_app\node_modules\@react-native-community\cli-platform-android\native_modules.gradle' line: 182
* What went wrong:
A problem occurred evaluating settings 'test_app'.
> Text must not be null or empty
* 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
manually modify the file ‘node_modules@react-native-community\cli-platform-android\native_modules.gradle’ and change
def command = "node ./node_modules/.bin/react-native config"
to
def command = "./node_modules/.bin/react-native config"
can temporary fix the problem.
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 6
- Comments: 15 (1 by maintainers)
@neilerua72 you need to start another console to run ./node_modules/.bin/react-native.cmd start to start up the Metro bundler.