0

When I ran the App from Android Studio or cli, android build fails with the following error,

Caused by: java.lang.Exception: Calling `[node, /Users/icebit-lab-06/node_modules/@react-native-community/cli/build/bin.js, config]` finished with an exception. Error message: groovy.json.JsonException: Unable to determine the current character, it is not a string, number, array, or object

I tried to delete package-lock.json file and node-modules and reinstall them, but it not works, I also tried to clean android builds using

./gradlew clean

but this also failed with the same error

Saurabh D Vyas
  • 143
  • 1
  • 1
  • 7

1 Answers1

0

Try This solutions:

Solution 1: run npm i --save @react-native-community/cli-platform-android

Solution 2: Try deleting app\build\intermediates\signing_config\debug\out\signing-config.json

Raj Parmar
  • 83
  • 6