Firebase crashing for Android 10 users

Using Defold 1.2.179 and this Firebase library: https://github.com/defold/extension-firebase-analytics/archive/1.5.0.zip

Some of my users get the following crash:

java.lang.NoClassDefFoundError

java.lang.NoClassDefFoundError: at com.google.firebase.FirebaseApp.<clinit>(com.google.firebase:firebase-common@@16.0.2:152)
at com.google.firebase.FirebaseApp.initializeApp(com.google.firebase:firebase-common@@16.0.2:297)
at com.google.firebase.provider.FirebaseInitProvider.onCreate(com.google.firebase:firebase-common@@16.0.2:53)
  at android.content.ContentProvider.attachInfo (ContentProvider.java:2092)
  at android.content.ContentProvider.attachInfo (ContentProvider.java:2066)
  at com.google.firebase.provider.FirebaseInitProvider.attachInfo
  at android.app.ActivityThread.installProvider (ActivityThread.java:7024)
  at android.app.ActivityThread.installContentProviders (ActivityThread.java:6569)
  at android.app.ActivityThread.handleBindApplication (ActivityThread.java:6464)
  at android.app.ActivityThread.access$1300 (ActivityThread.java:220)
  at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1860)
  at android.os.Handler.dispatchMessage (Handler.java:107)
  at android.os.Looper.loop (Looper.java:214)
  at android.app.ActivityThread.main (ActivityThread.java:7397)
  at java.lang.reflect.Method.invoke (Native Method)
  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:492)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:935)

All the users with this crash are under Android 10.
Any way to fix it? Thanks

Does it say which class it fails to find?

Are you also getting this crash with the old version (1.4.2) of the Firebase extension? In 1.5.0 we upgraded to Firebase SDK 7.1.0.

I’mm using the 1.5.0 extension.

I don’t have more data about the crash. That’s the full stacktrace.

Yes, but did you use the older version prior to using 1.5.0? And if so, did you receive any crash reports for 1.4.2?

I only pushed my app in beta with the 1.5.0 version so I can’t know if the 1.4.2 is working for those users.

2 Likes

@Lex, can you please create a ticket on GitHub?

ok done

1 Like

Thanks. I’ll take a look as soon as I can.