所有Firebase库必须高于14.0.0或低于14.0.0 [英] All firebase libraries must be either above or below 14.0.0

本文介绍了所有Firebase库必须高于14.0.0或低于14.0.0的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经检查了我的应用程序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,清理项目或重建项目,因为它不断抛出错误All firebase libraries must be either above or below 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服务中的新SDK版本和Firebase

Here's a blog by Google that provides more information. Announcing new SDK versioning in Google Play services and Firebase

这篇关于所有Firebase库必须高于14.0.0或低于14.0.0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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