-
Notifications
You must be signed in to change notification settings - Fork 45
[Bug] AndroidX DataStore library missing - Instant Crash - App will not open #1225
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight. |
The fix was to go back to Firebase 12.6 |
Same here. I'm getting the same crash on Unity 6 (60000.0.33f1) with Firebase Unity 12.8.0. |
Hey folks, I was able to reproduce the behavior. I'll bring this up to our engineers and see what we can do here. Thanks! |
Thanks for flagging this. Looking at the logs, it prints out this message:
The problem is Unity versions tend to be under AGP 8.4.0, and so are hit by this issue. We'll see what we can do to automate a fix, but in the meantime you can either use an older version of the Unity SDK, or something that worked for me was in the Unity project, enable the baseProjectTemplate.gradle file, and add this to the top:
|
So, Unity 6000.0.45f1+ will fix the issue without any other changes https://docs.unity3d.com/Manual/android-gradle-overview.html |
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:
Firebase 12.8 with the following packages:
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:
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:
Firebase 12.8 with the following packages:
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
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!
The text was updated successfully, but these errors were encountered: