【问题标题】:Failed to resolve: com.google.firebase:firebase-analytics:9.0.0 [duplicate]无法解决:com.google.firebase:firebase-analytics:9.0.0 [重复]
【发布时间】:2016-09-15 17:47:21
【问题描述】:

根据 Google I/O 2016,我知道“Firebase”,它对我来说非常好,但我不能使用它,因为这个错误。我有一个将“Google play services”更新到 30 的解决方案,但没有更新提示。

【问题讨论】:

  • 这很奇怪。我刚刚检查并更新可用:rev。 30 可见。

标签: android firebase google-play-services firebase-analytics


【解决方案1】:

您必须更新您的 SDK 管理器

你也必须使用

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

在您的 buildscript 块中,此版本必须与 Google Play 服务 9.0 (+) 一起使用。

【讨论】:

  • 感谢回复!
  • com.google.firebase:firebase-core:9.4.0 出现类似错误,将“Google Repository”更新为最新解决了该问题!
【解决方案2】:

试试这个

com.google.firebase:firebase-core:9.0.0

而不是

com.google.firebase:firebase-analytics:9.0.0

【讨论】:

    猜你喜欢
    • 2016-09-19
    • 2016-09-15
    • 2017-03-04
    • 1970-01-01
    • 2018-02-23
    • 2018-03-16
    • 2018-11-26
    • 1970-01-01
    • 2016-09-15
    相关资源
    最近更新 更多