实施失败'com.google.firebase:firebase-auth:16.0.1:15.0.0'

时间:2019-10-07 20:56:06

标签: android firebase firebase-authentication

我强制将Firebase身份验证添加到我的应用程序,但出现此错误:

Failed firebase auth 15.0.0

它在互联网上的解决方案中表示:If you delete part 15.0.0 will be corrected 但是当删除:15.0.0部分时,表示未添加身份验证功能。 我能做什么? 我的构建在这里:

apply plugin: 'com.google.gms.google-services'

android {
    compileSdkVersion 28
    defaultConfig {
        applicationId "com.example.ppd.ment"
        minSdkVersion 19
        targetSdkVersion 28
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation 'com.android.support:appcompat-v7:28.0.0'
    implementation 'com.android.support:support-v4:28.0.0'

    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-analytics:16.0.1'

    implementation 'com.google.firebase:firebase-core:16.0.1'
    implementation 'com.google.firebase:firebase-auth:16.0.1:15.0.0'

}

1 个答案:

答案 0 :(得分:0)

尝试这个:

implementation 'com.google.firebase:firebase-auth:16.0.5'