why i am not able to use FirebaseDatabase in android studio

Viewed 28
2 Answers

you can try clean Project (Build-> Clean Project) or Invalidate Caches(File->Invalidate Caches -> Invalidate and Restart)

Please check if you have these dependencies in your build.gradle (Module:app) file.

 implementation 'com.google.firebase:firebase-database:20.0.5'
 implementation platform('com.google.firebase:firebase-bom:29.2.1')

For further guide on how to setup firebase properly please visit this.

Related