defold / extension-firebase-analytics

Google Firebase Analytics extension for the Defold game engine
https://www.defold.com/extension-firebase-analytics/
MIT License
19 stars 12 forks source link

NoClassDefFoundError #18

Open alexandrecurtelin opened 3 years ago

alexandrecurtelin commented 3 years ago

Using Defold 1.2.179 And extension1.5.0

Some users (all of them on Android10, but not 100% sure it it's only because my testers are on Android10, could affect other versions) 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)
britzl commented 3 years ago

I've been unable to figure out what's wrong here. I have a version using a newer firebase-cpp sdk (7.3.0 instead of 7.1.0): https://github.com/defold/extension-firebase-analytics/archive/refs/heads/dev-update-7.3.0.zip

You could give this version and try and see if it helps.

britzl commented 3 years ago

@alexandrecurtelin any new info on how to reproduce this?