【发布时间】:2018-09-24 02:49:07
【问题描述】:
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'
【问题讨论】:
-
有什么问题?
-
当我添加特定于 firebaseUI 的那一行时,它会在 values.xml 文件中显示某种错误
-
某种错误?什么错误?
-
在帖子中添加错误
-
你能发布整个 gradle 文件吗?
标签: android firebase-authentication firebase-cloud-messaging firebase-security firebaseui