[Solved] Firebase Error : Failed to resolve : com.google.firebase:firebase-database:16.0.6 [closed]


In order to add firebase-database to your application, you also need to add the firebase-core libraries (which you commented out).

app/build.gradle

dependencies {
  // ...
  implementation 'com.google.firebase:firebase-core:16.0.6'
 }

If you haven’t done so, you also need to add rules to include Google services and Google’s Maven repository.

Please read Add Firebase to Your Android Project to find out more.

0

solved Firebase Error : Failed to resolve : com.google.firebase:firebase-database:16.0.6 [closed]