Skip to content Skip to sidebar Skip to footer

Could Not Find Com.google.firebase:firebase-database:9.2.0

I was trying to install new firebase database into my app, but it was failed with next error: Error:Could not find com.google.firebase:firebase-database:9.2.0. Required by:

Solution 1:

You have to update/install Google Repository, revision 30 (Your android studio latest version).

Solution 2:

Instead of adding the project, Just add google services dependency to you root level gradle classpath 'com.google.gms:google-services:3.0.0' and firebase database dependency to your app level gradle compile 'com.google.firebase:firebase-database:9.2.0'

Solution 3:

The part I was missing was in by build.gradle (Project:). Make sure this is there:

allprojects {
    repositories {
        jcenter()
        maven {
            url "https://maven.google.com"// Google's Maven repository
        }
    }
}

It allows the project to find it in Google's Maven repository.

Post a Comment for "Could Not Find Com.google.firebase:firebase-database:9.2.0"