android - 我如何修复身份验证错误android应用程序
问题描述
嗨,我如何修复 Firebase 身份验证错误 - “无法解决:firebase-auth-15.0.0”
`应用插件:'com.android.application' 应用插件:'com.google.gms.google-services'
android {
compileSdkVersion 28
defaultConfig {
applicationId "com.anton1111.azot2.antonio_chat"
minSdkVersion 17
targetSdkVersion 28
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:28.0.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
implementation 'com.android.support:support-v4:28.0.0'
implementation 'com.android.support:design:28.0.0'
implementation 'com.google.firebase:firebase-auth:16.1.0'
implementation 'com.google.firebase:firebase-database:16.0.5'
implementation 'com.google.firebase:firebase-storage:16.0.5'
implementation 'com.google.firebase:firebase-core:16.0.6'
implementation 'com.android.support:cardview-v7:28.0.0'
implementation 'com.rengwuxian.materialedittext:library:2.1.4'
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-auth:16.0.1'
}`
解决方案
您在依赖项中有两次相同的实现
implementation 'com.google.firebase:firebase-auth:16.1.0'
和
implementation 'com.google.firebase:firebase-auth:16.0.1'
删除最后一个,让firebase-auth:16.1.0
您在照片中发布的版本有两个版本,这导致了错误
implementation 'com.google.firebase:firebase-auth:16.0.1:15.0.0' <--- 16.0.1 and 15.0.0
删除一个版本,只使用最新的一个
implementation 'com.google.firebase:firebase-auth:16.1.0'
推荐阅读
- asp.net - Asp.Net 菜单来自 Sql Server“MenuItemClick”事件未触发
- r - R 到 Oracle 连接
- r - 在 R 的 ergm 包中,如果我想模拟具有同质性/聚类的图,我应该输入什么模拟网络?
- video - ffmpeg - 在两次之间向视频添加文本
- solid-principles - 单一责任原则与开闭原则
- javascript - 如何使用 Mailjet 进行身份验证而不会出现与 node_modules 相关的错误?
- laravel - 航海者 Laravel axios 获得 405
- csv - 将 csv 导入 sqlite3 插入失败
- javascript - 如何在 Angular Binding 中编写 Javascript?
- javascript - 使用“this”进行模糊处理后的jQuery焦点