In project 'app' a resolved Google Play services library dependency depends on another at an exact version

后端 未结 22 1865
情话喂你
情话喂你 2020-12-08 13:42

Trying to create a simple app with FireStore and Google Authentication. Having problem with the gradle:

In project \'app\' a resolved Google Play serv

22条回答
  •  -上瘾入骨i
    2020-12-08 14:02

    The problem was it was missing a dependency. Adding com.google.firebase:firebase-auth solved the issue.

    dependencies {
        implementation fileTree(dir: 'libs', include: ['*.jar'])
        implementation 'com.android.support:appcompat-v7:27.1.1'
        implementation 'com.android.support.constraint:constraint-layout:1.1.3'
        testImplementation 'junit:junit:4.12'
        androidTestImplementation 'com.android.support.test:runner:1.0.2'
        androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
        implementation 'com.google.firebase:firebase-firestore:17.1.5'
    
    //    implementation'com.google.firebase:firebase-core:16.0.6'
    //    implementation'com.google.firebase:firebase-storage:16.0.5'
    
        implementation'com.google.firebase:firebase-auth:16.1.0' => add this line
        implementation 'com.firebaseui:firebase-ui-auth:4.2.0'
    }
    

提交回复
热议问题