当前位置: 首页 > 知识库问答 >
问题:

Firebase版本更新问题

吕霖
2023-03-14

我正在更新我的firebase id

   implementation "com.google.firebase:firebase-core:17.0.0"
   implementation "com.google.firebase:firebase-iid:17.0.2"
   implementation "com.google.firebase:firebase-messaging:17.0.0"

   implementation "com.google.android.gms:play-services-places:17.0.0"
   implementation "com.google.android.gms:play-services-location:17.0.0"
   implementation "com.google.android.gms:play-services-maps:17.0.0"

依赖失败:com.google.firebase:firebase消息:17.0.0-

同时给出以下错误:

以下依赖关系是项目依赖关系,它们是直接的或具有传递性的依赖关系,从而导致与问题相关的art ifact。-项目“mifosng”依赖于依赖于com的项目“debugCompileClasspath”。谷歌。firebase:firebase分析s@17.0.0--项目“mifosng”依赖于项目“debugCompileClasspath”,该项目依赖于com.google.firebase:firebase-core@17.0.0--项目“mifosng”依赖于项目“debugCompileClasspath”,该项目依赖于com.google.firebase:firebase messaging@17.0.0

共有3个答案

曹浩
2023-03-14

你不需要添加:

implementation "com.google.firebase:firebase-iid:17.0.2"

因为它是在Firebase消息传递中使用的传递依赖,这意味着Firebase消息传递已经使用了它。所以只需从您的build.gradle文件中删除实现"com.google.firebase: Firebase-iid: 17.0.2"即可。

闻人英韶
2023-03-14

这为我工作:

implementation 'com.google.firebase:firebase-iid:19.0.1'
implementation 'com.google.firebase:firebase-core:17.0.1'
implementation 'com.google.firebase:firebase-database:18.0.0'
implementation 'com.google.firebase:firebase-auth:18.1.0'
implementation 'com.google.firebase:firebase-messaging:19.0.1'

而且

classpath 'com.google.gms:google-services:4.3.0' 

在顶层构建的依赖项中。格拉德尔

爱亮
2023-03-14

这在我之前发生过,你需要在你的项目中添加/启用AndroidX

不要忘记在项目属性中添加以下内容:

android.useAndroidX=true
android.enableJetifier=true
 类似资料:
  • v2.0.9[2020-4-12] 修复(Fixed): 修复 MySQL 8.0 生成实体主键位置错误 e437d36 更新(Update): 连接池关闭连接, 如果连接已经断开, 异常将会被忽略 7aac80da 增强(Enhancement): v2.0.8[2020-1-18] 修复(Fixed): 修复 ws server 的 message response.finish 兼容 swo

  • 网防G01最新版本为:Linux版本:3.0.63.10,Windows版本:3.1.18.6,PC客户端版本:3.1.18。 更新记录: 2020年03月30日 2018年11月06日 2018年05月15日 2017年10月10日 2017年07月21日 2020年3月30日,更新说明 Linux版本:3.1.20.15 Windows版本:3.1.20.15 PC客户端版本:3.1.20.1

  • 2018-06-19:更新 Homestead 版本到 v7.8.0; 2018-06-17:更新 Homestead 等虚拟机软件到最新;

  • 现在创建一个 git版本库:(参见“初始化”一节) mkdir sandbox cd sandbox/ git init touch test git add . git commit -m "创建git版本库" git log查看版本纪录: commit d63e709f565dcd60ab749f0eca27a947b02b8c26 Author: kardinal <2999am@g

  • 问题内容: 我正在尝试使用CocoaPods将Swift项目更新为Firebase的新SDK版本4.0.0(如文档所建议),但是即使按照文档中的步骤进行操作,更新的SDK似乎也没有安装。 谁能帮助我了解为什么这不起作用以及我如何才能更新到新的Firebase SDK? 我的Podfile 当我运行时,我得到了看似有希望的输出(除了它不是 我认为 应该的版本4 ): 我可以说它也不会更新到最新的SD

  • 目前我的gradle有这样一行:implementation'com。谷歌。firebase:firebase存储:16.0.4' 我需要使用19.1.0版,但每次更改时都会出现以下错误: 错误:清单合并失败:属性application@appComponentFactory值=(android.support.v4.app.CoreComponentFactory)来自[com.android.