Skip to content

[Bug] AndroidX DataStore library missing - Instant Crash - App will not open #1225

Open
@dcosmin-97

Description

@dcosmin-97

Description

You need the following:
Unity 6000.0.44f1
Admob 10.0
Mediations: Liftoff, Meta, Unity, Pangle, Inmobi, Applovin - latest versions available.
EDM: 1.2.185

Device:

  • Android 14
  • Samsung S22

Firebase 12.8 with the following packages:

  • Analytics
  • AppCheck
  • Auth
  • Crashlytics
  • Firestore
  • Functions
  • Messaging

The app will instantly crash.
Errors:
Fatal Exception: java.lang.NoClassDefFoundError
Failed resolution of: Landroidx/datastore/preferences/PreferenceDataStoreDelegateKt;
Caused by java.lang.ClassNotFoundException
androidx.datastore.preferences.PreferenceDataStoreDelegateKt

Current fix:

  • Rollback to 12.6

Reproducing the issue

Unity 6000.0.44f1
Admob 10.0
Mediations: Liftoff, Meta, Unity, Pangle, Inmobi, Applovin - latest versions available.
EDM: 1.2.185

Device:

  • Android 14
  • Samsung S22

Firebase 12.8 with the following packages:

  • Analytics
  • AppCheck
  • Auth
  • Crashlytics
  • Firestore
  • Functions
  • Messaging

Firebase Unity SDK Version

12.8

Unity editor version

6000.0.44f1

Installation Method

.unitypackage

Problematic Firebase Component(s)

All

Other Firebase Component(s) in use

Analytics, App Check, Authentication, Crashlytics, Firestore, Functions, Messaging

Additional SDKs you are using

Meta
Liftoff
Admob
Unity
Pangle
Applovin

-> All of them are latest versions

Targeted Platform(s)

Android

Unity editor platform

Windows

Scripting Runtime

IL2CPP

Release Distribution Type

Pre-built SDK from https://firebase.google.com/download/unity

Relevant Log Output

Fatal Exception: java.lang.NoClassDefFoundError
Failed resolution of: Landroidx/datastore/preferences/PreferenceDataStoreDelegateKt;
com.google.firebase.sessions.settings.SessionsSettings.<clinit> (SessionsSettings.kt:156)
com.google.firebase.sessions.settings.SessionsSettings_Factory.newInstance (SessionsSettings_Factory.java:57)
com.google.firebase.sessions.settings.SessionsSettings_Factory.get (SessionsSettings_Factory.java:44)
com.google.firebase.sessions.settings.SessionsSettings_Factory.get (SessionsSettings_Factory.java:13)
com.google.firebase.sessions.dagger.internal.DoubleCheck.get (DoubleCheck.java:47)
com.google.firebase.sessions.FirebaseSessions_Factory.get (FirebaseSessions_Factory.java:41)
com.google.firebase.sessions.FirebaseSessions_Factory.get (FirebaseSessions_Factory.java:13)
com.google.firebase.sessions.dagger.internal.DoubleCheck.get (DoubleCheck.java:47)
com.google.firebase.sessions.DaggerFirebaseSessionsComponent$FirebaseSessionsComponentImpl.getFirebaseSessions (DaggerFirebaseSessionsComponent.java:152)
com.google.firebase.sessions.FirebaseSessionsRegistrar.getComponents$lambda$0 (FirebaseSessionsRegistrar.kt:48)
com.google.firebase.sessions.FirebaseSessionsRegistrar.$r8$lambda$r7-PKYXSbWzr9mCtWMP1_jMCi4s
com.google.firebase.sessions.FirebaseSessionsRegistrar$$ExternalSyntheticLambda0.create (D8$$SyntheticClass)
com.google.firebase.tracing.ComponentMonitor.lambda$processRegistrar$0 (ComponentMonitor.java:38)
com.google.firebase.tracing.ComponentMonitor$$ExternalSyntheticLambda0.create (D8$$SyntheticClass)
com.google.firebase.components.ComponentRuntime.lambda$discoverComponents$0$com-google-firebase-components-ComponentRuntime (ComponentRuntime.java:160)
com.google.firebase.components.ComponentRuntime$$ExternalSyntheticLambda2.get (D8$$SyntheticClass)
com.google.firebase.components.Lazy.get (Lazy.java:53)
com.google.firebase.components.ComponentRuntime.doInitializeEagerComponents (ComponentRuntime.java:322)
com.google.firebase.components.ComponentRuntime.initializeEagerComponents (ComponentRuntime.java:312)
com.google.firebase.FirebaseApp.initializeAllApis (FirebaseApp.java:607)
com.google.firebase.FirebaseApp.initializeApp (FirebaseApp.java:300)
com.google.firebase.FirebaseApp.initializeApp (FirebaseApp.java:264)
com.google.firebase.FirebaseApp.initializeApp (FirebaseApp.java:249)
com.google.firebase.provider.FirebaseInitProvider.onCreate (FirebaseInitProvider.java:69)
android.content.ContentProvider.attachInfo (ContentProvider.java:2700)
android.content.ContentProvider.attachInfo (ContentProvider.java:2670)
com.google.firebase.provider.FirebaseInitProvider.attachInfo (FirebaseInitProvider.java:61)
android.app.ActivityThread.installProvider (ActivityThread.java:8628)
com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1103)

If using CocoaPods for Apple platforms, the project's Podfile.lock

Expand Podfile.lock snippet
👀 Replace this line with the contents of your Podfile.lock!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      X