ravi kumar sharma
ravi kumar sharma

Reputation: 41

error shown in resove com.google.firebase:firebase-core:16.0.3

click here to check exact error which i am getting

 buildscript {

repositories {
    google()
    jcenter()
}
dependencies {
    classpath 'com.android.tools.build:gradle:3.0.1'
    classpath 'com.google.gms:google-services:4.0.1'

    // NOTE: Do not place your application dependencies here; they belong
    // in the individual module build.gradle files
}
}
allprojects {
    repositories {
        google()
        jcenter()
    }
}


task clean(type: Delete) {
    delete rootProject.buildDir
}

this is my build.gradel in project level you can check the image link for the exact error,which will reflect my problem.. every thing which is needed for upgradation is already over yyou can check this by clicking here i have provided one screenshot for that

i am scratching my mind from the past few days.please help me

Upvotes: 1

Views: 123

Answers (2)

Peter Haddad
Peter Haddad

Reputation: 80944

The error is (according to the image):

Failed to resolve:com.google.firebase:firebase-database:16.0.3

To solve that use version 16.0.1 for firebase-database since it is the latest one.

implementation 'com.google.firebase:firebase-database:16.0.1'

You can check here for the latest versions.

Upvotes: 1

Just add the libraries this way

implementation 'com.google.firebase:firebase-core:16.0.3'
implementation 'com.google.firebase:firebase-database:16.0.3'
implementation 'com.google.firebase:firebase-auth:16.0.3'

You have to change the instruction 'compile' to 'implementation'

Upvotes: 0

Related Questions