Android production build high crash rate

SDK 35, ejected with ExpoKit.
Getting high crash rate on Android with:

  at host.exp.exponent.experience.BaseExperienceActivity$ (
  at android.os.Handler.handleCallback (
  at android.os.Handler.dispatchMessage (
  at android.os.Looper.loop (
  at (
  at java.lang.reflect.Method.invoke (
  at$ (
  at (


java.lang.RuntimeException: Expo encountered a fatal error: Unexpected end of script


java.lang.RuntimeException: Expo encountered a fatal error: Unexpected EOF

Any advice on how to debug?


This is most likely because of the GCM library mentioned in this issue:

Attempts at a resolution includes “upgrading” to FCM, if you are using push notifications from Expo:

You can also try what I’m doing, which is to simply follow the removal steps in the above guide, as we are using OneSignal for push notifications. So far, it seems like it has fixed the issue. There is also a line in app/build.gradle referencing the Gcm library, which I also removed in addition to the line in AndroidManifest.XML mentioned in the guide above.

Hope you manage to solve it.


Thanks for advice! Still crashes for some reason.

I’ve tried removing GCM, also removed the GCM line in app/build.gradle and published a new build, same errors.

We are also getting this error. We haven’t used GCM, we added the FCM settings on March 7.

1 Like

Hey @fredrikschweinebarth, did you have this error before adding FCM? I’ve started seeing this error after upgrading to SDK35, was on SDK30 before that with no crashes.

@andrey we had actually added FCM before ever shipping the app live, so no. (We are also not ejected, FWIW).

Also getting this exact error. SDK 35, expo kit project.

Same error on a managed expo app sdk 35.

Not a huge crash rate but still too big to be left unsolved. Any leads ? Not using any notifications at all in the app.

1 Like

My crash rate is higher than “Bad behavior threshold”. The app is probably penalized in Google Play search because of that.