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
I encountered this problem after I deleted and re-cloned my app and forgot to include the google-services.json inside the app module. After I re-added it, the problem went away. Nevertheless, you should init the context inside your custom Application class:
class MyApplication : Application() {
override fun onCreate() {
super.onCreate()
FirebaseApp.initializeApp(this)
}
}
<manifest
package="your.app">
<application
android:name=".MyApplication"
Firebase
dependencies to latest then you should update Google play services
as well.During the writing of this answer I had updated all my Firebase
libs to 17.0.+ but my Google play service was still pointing at 4.1.0.
Updating play service version to 4.3.0(Latest) fixed it for me.