firebase / quickstart-unity

Firebase Quickstart Samples for Unity
https://firebase.google.com/games
Apache License 2.0
828 stars 428 forks source link

[Bug] IllegalStateException, com.google.firebase.crashlytics.internal.persistence.FileStore.prepareBaseDir #1260

Closed fdspbsteam closed 2 years ago

fdspbsteam commented 2 years ago

[REQUIRED] Please fill in the following fields:

Unity editor version: 2020.3.22f1 Firebase Unity SDK version: 8.9.0 Source you installed the SDK: .unitypackage Problematic Firebase Component: Cloud Messaging Other Firebase Components in use: Auth, Database, Remote Config Additional SDKs you are using: Facebook, IronSource, Adjust Platform you are using the Unity editor on: Mac Platform you are targeting: Android and iOS Scripting Runtime: IL2CPP

[REQUIRED] Please describe the issue here:

Type java.lang.RuntimeException java.lang.RuntimeException: at android.app.ActivityThread.installProvider (ActivityThread.java:7455) at android.app.ActivityThread.installContentProviders (ActivityThread.java:6991) at android.app.ActivityThread.handleBindApplication (ActivityThread.java:6886) at android.app.ActivityThread.access$1300 (ActivityThread.java:244) at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1920) at android.os.Handler.dispatchMessage (Handler.java:106) at android.os.Looper.loop (Looper.java:223) at android.app.ActivityThread.main (ActivityThread.java:7868) at java.lang.reflect.Method.invoke (Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:592) at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:981) Caused by: java.lang.IllegalStateException: at com.google.firebase.crashlytics.internal.persistence.FileStore.prepareBaseDir (FileStore.java:188) at com.google.firebase.crashlytics.internal.persistence.FileStore.<init> (FileStore.java:66) at com.google.firebase.crashlytics.FirebaseCrashlytics.init (FirebaseCrashlytics.java:75) at com.google.firebase.crashlytics.CrashlyticsRegistrar.buildCrashlytics (CrashlyticsRegistrar.java:57) at com.google.firebase.crashlytics.CrashlyticsRegistrar.lambda$aBuXIXlTYD2Kajd_VBsZ-5OANwA (Unknown Source) at com.google.firebase.crashlytics.-$$Lambda$CrashlyticsRegistrar$aBuXIXlTYD2Kajd_VBsZ-5OANwA.create (Unknown Source:2) at com.google.firebase.components.ComponentRuntime.lambda$discoverComponents$0$ComponentRuntime (ComponentRuntime.java:132) at com.google.firebase.components.-$$Lambda$ComponentRuntime$CLI-XObGztS2iu7RD22eoA3PpJU.get (Unknown Source:4) at com.google.firebase.components.Lazy.get (Lazy.java:53) at com.google.firebase.components.ComponentRuntime.doInitializeEagerComponents (ComponentRuntime.java:291) at com.google.firebase.components.ComponentRuntime.initializeEagerComponents (ComponentRuntime.java:281) at com.google.firebase.FirebaseApp.initializeAllApis (FirebaseApp.java:594) at com.google.firebase.FirebaseApp.initializeApp (FirebaseApp.java:305) at com.google.firebase.FirebaseApp.initializeApp (FirebaseApp.java:269) at com.google.firebase.FirebaseApp.initializeApp (FirebaseApp.java:254) at com.google.firebase.provider.FirebaseInitProvider.onCreate (FirebaseInitProvider.java:51) at android.content.ContentProvider.attachInfo (ContentProvider.java:2391) at android.content.ContentProvider.attachInfo (ContentProvider.java:2361) at com.google.firebase.provider.FirebaseInitProvider.attachInfo (FirebaseInitProvider.java:45) at android.app.ActivityThread.installProvider (ActivityThread.java:7450)

image

paulinon commented 2 years ago

Hi @fdspbsteam,

Based on the details you specified in this ticket, it appears that cause of the issue lies within the Android SDK as it looks similar to this issue. You may redirect your concern to the respective GitHub issues tracker. That being said, I'll be closing this for now.