[Fixed] [node, @react-native-community\cli\build\bin.js, config]` finished with an exception. Error message: groovy.json.JsonException – React-native

by
Ali Hasan
android gradlew react-native react-native-cli

The Solutions:

Solution 1: Execute rm -rf ./android/app/release command

You can execute the following command to fix the issue:

rm -rf ./android/app/release

Solution 2: Upgrade Expo and Fix Dependencies

If you are using Expo, you may face this issue due to outdated dependencies. To resolve it:

  • Run yarn install expo@^48.0.0 to upgrade your Expo project.
  • Run npx expo install --fix to fix all dependencies and ensure they align with the updated Expo SDK version (48).

Video Explanation:

The following video, titled "React Native CLI full setup and error fix: error Failed to install the ...", provides additional insights and in-depth exploration related to the topics discussed in this post.

Play video

Welcome to Guruputran Raj Kumar's Smart codes channel Email: [email protected] --------------- Gitbash: netstat -ano | findstr :8000 ...