Default FirebaseApp is not initialized in this process

Hello All,

If you added Firebase on your Android Studio App and try to do this below.

FirebaseDatabase.getInstance();

Then you can have an Error like Default FirebaseApp is not initialized in this process

In this case just change the version below (This code is in Build Gradle(Project))

from this

classpath 'com.google.gms:google-services:4.1.0'

to this

classpath 'com.google.gms:google-services:4.0.1'

And check it again. 🙂

Bir cevap yazın

E-posta hesabınız yayımlanmayacak. Gerekli alanlar * ile işaretlenmişlerdir