All firebase libraries must be either above or below 14.0.0(所有 firebase 库必须高于或低于 14.0.0)
问题描述
我检查了我的 app build.gradle 文件,这些是其中唯一与 firebase 相关的行
I have checked my app build.gradle file and these are the only lines that are related to firebase in them
/***
* Firebase
*/
implementation 'com.google.firebase:firebase-core:15.0.0'
implementation 'com.google.firebase:firebase-messaging:15.0.0'
implementation('com.crashlytics.sdk.android:crashlytics:2.9.1@aar') {
transitive = true
}
implementation 'com.google.firebase:firebase-ads:15.0.0'
我没有任何使用 firebase 的库,所以我认为使用旧版本的库不会有问题.
I do not have any library that makes use of firebase so I don't think there can be an issue with a library using an older version.
问题是我无法使用新的 v15 版本的 firebase 构建 gradle、清理项目或重建项目,因为它不断抛出错误 所有 firebase 库必须高于或低于 14.0.0
The problem is I can't build gradle, clean project or rebuild project with the new v15 version of firebase as it keeps throwing the error All firebase libraries must be either above or below 14.0.0
推荐答案
原来忘记改com.google.android.gms:play-services-ads的版本号,换了到 15.0.0 并且成功了.
Turns out I forgot to change the version number for com.google.android.gms:play-services-ads, switched it to 15.0.0 and it worked.
这是一个由 Google 提供的博客,其中提供了更多信息.宣布在 Google Play 服务和火力基地
Here's a blog by Google that provides more information. Announcing new SDK versioning in Google Play services and Firebase
这篇关于所有 firebase 库必须高于或低于 14.0.0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:所有 firebase 库必须高于或低于 14.0.0
- 网上有没有好的 UIScrollView 教程? 2022-01-01
- SetOnItemSelectedListener上的微调程序错误 2022-01-01
- UITextView 内容插图 2022-01-01
- 使用自动布局向 UIScrollView 添加动态大小的视图 2022-01-01
- 类似于 Mail.app 的 iPad 模态视图控制器? 2022-01-01
- GPS状态的广播接收器? 2022-01-01
- URL编码Swift iOS 2022-01-01
- 如何在 iPhone 模拟器中重置 NSUserDefaults 数据? 2022-01-01
- 在 Iphone SDK 的导航栏上添加多个按钮 2022-01-01
- Xcode 7.3 中带有 UILabel 的 UIStackView 2022-01-01
