'com.android.support:support-v4:27.1.1'和'com.firebaseui:firebase-ui-auth:3.2.2'

时间:2018-05-09 13:12:08

标签: android firebase dependencies firebase-authentication build.gradle

当我实现'com.android.support:support-v4:27.1.1'

时,我与依赖项'com.firebaseui:firebase-ui-auth:3.2.2'存在错误兼容性

这是代码:

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation 'com.android.support:support-v4:27.1.1'
    implementation 'com.android.support:appcompat-v7:27.1.1'
    implementation 'com.android.support.constraint:constraint-layout:1.1.0'
    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.android.gms:play-services-auth:11.8.0'

    //firebase
    implementation 'com.google.firebase:firebase-core:11.8.0'
    implementation 'com.google.firebase:firebase-database:11.8.0'
    implementation 'com.google.firebase:firebase-auth:11.8.0'
    implementation 'com.firebaseui:firebase-ui-auth:3.2.2'
}

1 个答案:

答案 0 :(得分:0)

要解决此问题,请更改以下代码行:

implementation 'com.firebaseui:firebase-ui-auth:3.2.2'

implementation 'com.firebaseui:firebase-ui-auth:3.1.3'

或者更改所有这些代码行:

implementation 'com.google.android.gms:play-services-auth:11.8.0'

//firebase
implementation 'com.google.firebase:firebase-core:11.8.0'
implementation 'com.google.firebase:firebase-database:11.8.0'
implementation 'com.google.firebase:firebase-auth:11.8.0'
implementation 'com.firebaseui:firebase-ui-auth:3.2.2'

implementation 'com.google.android.gms:play-services-auth:15.0.0'

//firebase
implementation 'com.google.firebase:firebase-core:15.0.2'
implementation 'com.google.firebase:firebase-database:15.0.0'
implementation 'com.google.firebase:firebase-auth:15.1.0'
implementation 'com.firebaseui:firebase-ui-auth:3.3.1'

更多详情herehere

根据您的意见,还需要以下实施:

implementation 'com.android.support:animated-vector-drawable:27.1.1'
implementation 'com.android.support:cardview-v7:27.1.1'