React native build fails: The current character read is ‘E’ with an int value of 69

  android, react-native

React native build is failing. It was working well yesterday, I haven’t touched any android files and i haven’t installed any new package.

I have tried to clean cache forcefully.

I have tried deleting signing-config.json.

I have tried deleting android build folder.

I have tried reinstalling @react-native-community/cli-platform-android.

I have also tried to remove this line from app/build.gradle

apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle");

Nothing worked for me.

I am getting this error on both gradlew clean and npx react-native run-android.

* Where:
Script 'E:[email protected]rm-androidnative_modules.gradle' line: 231

* What went wrong:
A problem occurred evaluating script.
> Calling `[node, E:[email protected]n.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

The current character read is 'E' with an int value of 69
Unable to determine the current character, it is not a string, number, array, or object line number 1

index number 0
Error: EPERM: operation not permitted, scandir 'E:/PROJECTS/rnzone/Minex/android/app/build/intermediates/signing_config/release/out/signing-config.json'

As far as the EPERM error is concerned, I have also tried it with cmd as administrator. I am on windows.

Any ideas what’s wrong?

Source: Android Questions

LEAVE A COMMENT