question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ERROR: Failed to parse React Native CLI configuration.

See original GitHub issue

Hello,

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:closed
  • Created 4 years ago
  • Reactions:8
  • Comments:14 (3 by maintainers)

github_iconTop GitHub Comments

20reactions
khaledBoucommented, Feb 4, 2020

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 " "

12reactions
tusharsinghal1610commented, Jan 17, 2020

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Gradle exception: Failed to parse React Native CLI configuration
Simply trying to run the react-native run-android command returns me this React Native CLI-related error. ` info Running jetifier to migrate ...
Read more >
ReactNative:Failed to parse React Native CLI configuration ...
I experienced a similar issue. The problem for me turned out to be a syntax error in the file android/app/src/main/AndroidManifest.xml .
Read more >
Troubleshooting - React Native
If you run into issue where executing npm run android on macOS throws the above error, try to run sudo chmod +x android/gradlew...
Read more >
Troubleshooting | React Navigation
Sometimes it might even be due to a corrupt installation. If clearing cache didn't work, try deleting your node_modules folder and run npm...
Read more >
React Native - Back4App
In this guide you learn how to install and connect the Parse Server SDK to your React Native project and get ready to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found