ERROR: Failed to parse React Native CLI configuration.
See original GitHub issueHello,
I’m getting this error while ‘sync project through Gradle files’ from Android Studio.
ERROR: Failed to parse React Native CLI configuration. Expected running 'npx.cmd --quiet --no-install react-native config' command from '..\AwesomeProject' directory to output valid JSON, but it didn't. This may be caused by npx resolving to a legacy global react-native binary. Please make sure to uninstall any global 'react-native' binaries: 'npm uninstall -g react-native react-native-cli' and try again
I did this which in the message,
npm uninstall -g react-native react-native-cli
But it’s still showing the error.
I want to mention, it’s the first sync of the project. It’s just installed with this
npx react-native init AwesomeProject
Nothing did else.
Is there any solution?
Thanks in advance
Issue Analytics
- State:
- Created 4 years ago
- Reactions:8
- Comments:14 (3 by maintainers)
make sure that there’s no syntax error in AndroidManifest.xml for me i make a copy past and i forget to close attribute with " "
delete the files it was finding error as “The current character read is ‘E’ with an int value of 69” Deleting app\build\intermediates\signing_config\debug\out\signing-config.json worked for me.