FirebaseApp not initializing despite FirebaseApp.initializeApp() being called in Application class

后端 未结 8 1003
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-11 09:59

I am creating an Android application and I\'m currently trying to implement user authentication using Firebase. As far as I can tell, my app is connected to my Firebase serv

8条回答
  •  耶瑟儿~
    2021-01-11 10:38

    I know there's already an accepted answer. However, I ran into the same error message saying: java.lang.IllegalStateException: Default FirebaseApp is not initialized in this process (name). Make sure to call FirebaseApp.initializeApp(Context). I tried several solutions found on SO, and double checking everything, until I finally found that the package name defined in the Firebase Console didn't match the package name defined in my manifest file.

    Try go to your Firebase Console -> Project settings -> check if package names matches.

    Hope it may help some :)

提交回复
热议问题