You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[firebase 3.2.x] Android "default FirebaseApp is not initialized" #243
Were there any breaking changes in the latest versions of firebase-core analytics, crashlytics or messaging? After updating from version 3.1.3 to version 3.2.2 or 3.2.0, I get this error on Android devices: Error: java.lang.IllegalStateException: Default FirebaseApp is not initialized in this process com.myapp.myapp. Make sure to call FirebaseApp.initializeApp(Context) first.
My code, unchanged from the previous version. initializeApp() returns null and the next line throws the exception.
import{firebase}from"@nativescript/firebase-core";import"@nativescript/firebase-analytics";import"@nativescript/firebase-crashlytics";import"@nativescript/firebase-messaging";exportasyncfunctioninitFirebase(){constapp=awaitfirebase().initializeApp();// app is nullfirebase().crashlytics().setCrashlyticsCollectionEnabled(true);}
changed the title [-][firebase] Android "default FirebaseApp is not initialized"[/-][+][firebase 3.2.x] Android "default FirebaseApp is not initialized"[/+]on Mar 4, 2024
Activity
[-][firebase] Android "default FirebaseApp is not initialized"[/-][+][firebase 3.2.x] Android "default FirebaseApp is not initialized"[/+]kefahB commentedon Mar 4, 2024
Hi,
Downgrade the google firebase lib from the firebase-core/platforms/android/build.grale to 3.8 I think.