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…

--

--

--

Subscribe my newsletter to get weekly updates. — https://infinitbility.com/about

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Build Interactive and Responsive Charts with Chart.js

The no-bullshit guide to event listeners

Immutability in Javascript, How and Why?

How To Use the Null Coalescing Operator in JavaScript

Loving the view from my office #poolside #notworkingfortheman #selfemployed #passiveincome

How To Merge Two Arrays in JavaScript

conm.eu url shorter support ended

Learn Programming, Not a Programming Language

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
Infinitbility

Infinitbility

Subscribe my newsletter to get weekly updates. — https://infinitbility.com/about

More from Medium

Create a React useTranslation hook to use everywhere-Part 1

translation

What is the difference between react js-and react native — clarification

Expo CLI vs React Native CLI

How to learn React Native and Firebase in a month.