当我实现'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'
}
答案 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'
根据您的意见,还需要以下实施:
implementation 'com.android.support:animated-vector-drawable:27.1.1'
implementation 'com.android.support:cardview-v7:27.1.1'