Tell me the source of the EAS build error for Android

Hi everyone!

When creating an EAS build for Android, I got an error “Gradle build failed with unknown error. Please see logs for the “Run gradlew” phase.”

So far, I just realized that there is an error in my application, but it is not clear where.

“19 [stderr] >String index out of range: 0” - what is this string?
“21 [stderr] Run with --stacktrace option…” - where is it and what can be run?

*) Note: “ServiceMaster” is the name of my App
In Expo Go, the application works without errors (Expo).

Tell me where is the source of the error and how to fix it?


  • eas-cli/0.45.1 win32-x64
  • Node: 14.16.1
  • npm: 8.3.2
  • Android Studio: Version 2020.3.0.0 AI-203.7717.56.2031.7784292
  • npmPackages:
    expo: ~44.0.0
    react: 17.0.1
    react-native: 0.64.3
  • Build 01c37fc3

Dislike for answer. :face_with_raised_eyebrow: I am familiar with this…

OK. Let me ask the question differently:
Options --stacktrace, --debug, etc. are used when debugging in AndroidStudio. But I can’t open my project in AndroidStudio. So right?

How can I find the line in the application with the build error in this case? Especially if the App runs without errors?

have you tried debugging locally like explained in that doc? using expo run:android

this does enable you to open the project in android studio (by running expo prebuild) and you can debug all you need that way and then clear out the files created by prebuild when you’re done. the doc also outlines other approaches to troubleshooting if you’re not comfortable with that, and then how to formulate your question to get help if you still end up stuck.

Ok thanks, I’ll try