question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

RN 0.61.2 bug Android run Unable to determine the current character

See original GitHub issue

React Native version: 0.61.2 Node: 8.11.3 - C:\Program Files\nodejs\node.EXE Yarn: 1.15.2 - C:\Users\sergio.araujo\AppData\Roaming\npm\yarn.CMD npm: 5.6.0 - C:\Program Files\nodejs\npm.CMD SDKs: Android SDK: API Levels: 23, 25, 26, 27, 28, 29 Build Tools: 27.0.3, 28.0.0, 28.0.1, 28.0.2, 28.0.3 System Images: android-25 | Intel x86 Atom_64, android-25 | Google Play Intel x86 Atom, android-26 | Google APIs Intel x86 Atom, android-27 | Intel x86 Atom_64, android-27 | Google APIs Intel x86 Atom IDEs: Android Studio: Version 3.5.0.0 AI-191.8026.42.35.5900203 npmPackages: react: 16.9.0 => 16.9.0 react-native: 0.61.2 => 0.61.2

Steps To Reproduce

  1. react-native init AwesomeProject && npx react-native init AwesomeProject
  2. react-native run-android && react-native start… run-android

Describe what you expected to happen: When trying to run the application 0.60.x or 0.61.x returns the error mentioned below. I’ve tried to install / run without global cli and change cli’s ‘def compile’ settings

Snack, code example, screenshot, or link to a repository:

  • Where: Script ‘C:\Users\sergio.araujo\Desktop\rn\AwesomeProject\node_modules@react-native-community\cli-platform-android\native_modules.gradle’ line: 182

  • What went wrong: A problem occurred evaluating script.

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

The current character read is ‘C’ with an int value of 67 Unable to determine the current character, it is not a string, number, array, or object line number 1 index number 0

alt text

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:3
  • Comments:5

github_iconTop GitHub Comments

7reactions
nathfycommented, Nov 4, 2019

Just an update on this - the solution for me on app center was this: https://github.com/microsoft/appcenter/issues/1285

basically do a yarn add @react-native-community/cli-platform-android

0reactions
snksergiocommented, Nov 10, 2019

basically do a yarn add @react-native-community/cli-platform-android

Works! Thnx!!!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error: Unable to determine the current character, it is not a ...
I found my issue was caused by file permissions inside the android build folders - no idea what happened but on my Windows...
Read more >
Unable to determine the current character, it is not a string ...
Please help, error: Unable to determine the current character, it is not a string, number, array, or object in react-native for android.
Read more >
a problem occurred evaluating project ':react-native-gesture ...
Solution 2: run npm i --save @react-native-community/cli-platform-android. Open side panel. Error: Unable to determine the current character, ...
Read more >
Unable to determine the current character, it is not a string ...
By React Native debugger. “Unable to determine the current character, it is not a string, number, array, or object in react…” is published...
Read more >
Users/Runner/Work/1/S/Android/Gradlew Failed With Return ...
RN 0.61.2 bug Android run Unable to determine the current character Fantashit Build Tools: 27.0.3 28.0.0 28.0.1 28.0.2 28.0.3 microsoft/appcenter#1285.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found