gpt4 book ai didi

android - firebaseUI 依赖项与 firebase 版本 15.0.0 不匹配

转载 作者:行者123 更新时间:2023-11-30 00:01:38 24 4
gpt4 key购买 nike

firebaseUI 依赖项与 firebase 版本 15.0.0 不匹配实际上发生的事情是,当我包含 firebaseUI 依赖项时,android studio 显示某种与 values.xml 文件相关的错误。我在下面链接了错误图片,当我删除该行时一切正常,然后就没有错误了。

   The code for the entire gradle file is given below:

apply plugin: 'com.android.application'
repositories {
mavenLocal()
flatDir {
dirs 'libs'
}
maven { url "https://maven.google.com" }

}
android {
compileSdkVersion 24
buildToolsVersion '26.0.2'
defaultConfig {
applicationId "com.google.firebase.udacity.friendlychat"
minSdkVersion 16
targetSdkVersion 24
versionCode 1
versionName "1.0"
resConfigs "en"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
packagingOptions {
exclude 'META-INF/LICENSE'
exclude 'META-INF/LICENSE-FIREBASE.txt'
exclude 'META-INF/NOTICE'
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.google.firebase:firebase-database:15.0.0'
compile 'com.google.firebase:firebase-auth:15.0.0'
compile 'com.google.firebase:firebase-core:15.0.0'
compile 'com.firebaseui:firebase-ui-database:3.3.0'
compile 'com.android.support:design:24.2.0'
compile 'com.android.support:appcompat-v7:24.2.0'
compile 'com.github.bumptech.glide:glide:3.6.1'
}apply plugin: 'com.google.gms.google-services'

错误: enter image description here

最佳答案

README在 FirebaseUI 的 github 存储库中非常清楚。您需要显式覆盖每个 UI 库的所有传递依赖项,例如,如果您使用的是 firebase-ui-auth 版本 3.3.0 但想使用 firebase 版本 15.0.0support libaries 版本 27.1.1,它将如下所示。

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

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

implementation 'com.android.support:appcompat-v7:27.1.1'
implementation 'com.android.support:customtabs:27.1.1'
implementation "com.android.support:cardview-v7:27.1.1"
implementation 'com.android.support:design:27.1.1'

关于android - firebaseUI 依赖项与 firebase 版本 15.0.0 不匹配,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49822145/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com