Unable to determine the current character, it is not a string, number, array, or object in react native

Captured By Shani Tiwari

This error occurs for many reasons on react native application. I found some solutions.

Solution 1

  1. Delete Your Builds folder Available on react native app
Dir1. Project\android\build
2. Project\Android\App\build

2. Clean & Run Your project

$ cd android$ gradlew clean$ cd ..$ npx react-native run-android

Solution 2

  1. Delete Your signing-config.json file
DirProject\android\app\build\intermediates\signing_config\debug\out\signing-config.json

2. Clean & Run Your project

$ cd android$ gradlew clean$ cd ..$ npx react-native run-android

Solution 3

  1. install CLI-platform-android
npm i --save @react-native-community/cli-platform-android

2. Clean & Run Your project

$ cd android$ gradlew clean$ cd ..$ npx react-native run-android

Solution 4

  1. check & correct your AndroidManifest.xml file

Sometimes we forgot to close tags on an XML file

DirProject\android\app\src\main\AndroidManifest.xml

2. Clean & Run Your project

$ cd android$ gradlew clean$ cd ..$ npx react-native run-android

Clap For Your Solved error…

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store