java - Firebase/Android FirebaseUI Error
问题描述
I am trying to build an application in Android and I tried using the FirebaseUI, but I am getting this error:
error: cannot access zzeuq class file for com.google.android.gms.internal.zzeuq not found
Here is my gradle file.
apply plugin: 'com.android.application'
android {
compileSdkVersion 27
defaultConfig {
applicationId "com.example.vanillatalk.vanillatalk"
minSdkVersion 21
targetSdkVersion 27
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:27.1.1'
compile 'com.android.support:design:27.1.1'
implementation 'com.android.support.constraint:constraint-layout:1.1.0'
implementation 'com.google.firebase:firebase-auth:11.6.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.firebase:firebase-database:11.6.0'
implementation 'com.google.firebase:firebase-storage:11.6.0'
implementation 'de.hdodenhof:circleimageview:2.2.0'
compile 'com.theartofdev.edmodo:android-image-cropper:2.7.+'
implementation 'com.squareup.picasso:picasso:2.71828'
implementation 'com.firebaseui:firebase-ui-database:4.0.0'
}
apply plugin: 'com.google.gms.google-services'
I think that the error is related to missmatched versions of firebase, since it 11.6.0 and firebase-ui-database:4.0.0, but I cannot seem to find the correct versions for the firebase-ui-database that would match the 11.6.0?
Could anyone help?
解决方案
If you want to use version 4.0
of firebase ui
you need to update firebase dependencies:
implementation 'com.google.firebase:firebase-database:16.0.1'
For version 11.6.0
of firebase you should use version 3.x.x
of Firebase UI, see this.
推荐阅读
- r - coord_polar 中间的孔未显示
- unix - 为什么 ZSH 在字符串中使用`:r` 执行字符串编辑
- sql - T SQL 错误 3706 试图将值拉到最远的“-”
- julia - 来自DifferentialEquations.jl 的Heston 模型示例给出桥接分布错误
- c++ - C++ 中的 M_PI 给了我不正确的值
- java - 是否可以设置多个连接到一张表的多对一关系
- firebase - Firebase multi-tenancy 有这个错误 没有与提供的标识符对应的用户记录
- html - Handlebars - 如何在通过 {{#each something2}} 渲染另一个集合时获取另一个集合 {{#each something1}}
- design-patterns - 只为布尔变量分配单一含义的设计原则是什么?
- python - 计算 Matlabs “预测的标准误差”从 polyval 返回