所有 firebase 库必须高于或低于 14.0.0 [英] 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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆