Error message: groovy.json.JsonException: Unable to determine the current character

Hi all!

We are trying to build android and get error.

Build ID: 31cb2d22-f23f-40d1-92ed-7bdb343af706
Project ID: 3b10c524-d0ed-4cb5-9df8-12bc94babd1f

Is there some malfunction on eas or do we need to make any changes in our configs? Please help.

Running 'gradlew :app:bundleRelease' in /home/expo/workingdir/build/android

2

Downloading https://services.gradle.org/distributions/gradle-7.3.3-all.zip

3

10%.

4

20%

5

30%.

6

40%

7

50%.

8

60%

9

70%.

10

80%.

11

90%.

12

100%

13

Welcome to Gradle 7.3.3!

14

Here are the highlights of this release:

15

 - Easily declare new test suites in Java projects

16

 - Support for Java 17

17

 - Support for Scala 3

18

For more details see https://docs.gradle.org/7.3.3/release-notes.html

19

To honour the JVM settings for this build a single-use Daemon process will be forked. See https://docs.gradle.org/7.3.3/userguide/gradle_daemon.html#sec:disabling_the_daemon.

20

Daemon will be stopped at the end of the build

21[stderr]

FAILURE:

22[stderr]

Build failed with an exception.

23[stderr]

* Where:

24[stderr]

Script '/home/expo/workingdir/build/node_modules/@react-native-community/cli-platform-android/native_modules.gradle' line: 250

25[stderr]

* What went wrong:

26[stderr]

A problem occurred evaluating script.

27[stderr]

>

28[stderr]

Calling `[node, /home/expo/workingdir/build/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

29[stderr]

The current character read is 'i' with an int value of 105

30[stderr]

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

31[stderr]

line number 1

32[stderr]

  index number 0

33[stderr]

info Run CLI with --verbose flag for more details.

34[stderr]

  ^. Output: info Run CLI with --verbose flag for more details.

35[stderr]

* Try:

36[stderr]

> Run with --stacktrace option to get the stack trace.

37[stderr]

> Run with --info or --debug option to get more log output.

38[stderr]

> Run with --scan to get full insights.

39[stderr]

* Get more help at https://help.gradle.org

40[stderr]

BUILD FAILED in 16s

41

Error: Gradle build failed with unknown error. See logs for the "Run gradlew" phase for more information.

I have the same issue, did you already solve the problem?

Same here, encountering the exact same error while trying to run eas build for Android.

it sounds like you may have an invalid androidmanifest. if you have a bare project, i suggest opening it up in android studio and verifying.

if you have a managed project, you might have a config plugin that is breaking your androidmanifest.