【问题标题】:Failed to resolve: com.google.firebase:firebase-core:17.0.0无法解决:com.google.firebase:firebase-core:17.0.0
【发布时间】:2019-03-25 01:35:45
【问题描述】:

在我的 android 应用程序的构建文件中,我给出了错误版本的库 "com.google.firebase:firebase-core:17.0.0",目前最新版本是 "com.google.firebase:firebase-core:16.0.4"

后来,我更正了构建文件以使用正确的版本'com.google.firebase:firebase-core:16.0.4'。现在在构建应用程序时,我仍然收到错误消息。

Failed to resolve: com.google.firebase:firebase-core:17.0.0

我什至尝试删除依赖项"com.google.firebase:firebase-core****",但我仍然收到错误消息。请帮我解决。

【问题讨论】:

  • 为什么使用api?尝试使用implementation,然后确保您的根 build.gradle 中有google()。但是,更新 gradle 将在大多数情况下解决问题。检查此链接:stackoverflow.com/a/50789520/4409113

标签: android firebase android-studio build


【解决方案1】:

在您的案例中使用与 Core (16.0.4) 相同的广告依赖项。 或点击此链接获取进一步说明。

[https://firebase.google.com/docs/android/setup][1]

也使用实现而不是 api。

【讨论】:

    猜你喜欢
    • 2022-01-10
    • 2017-11-15
    • 2021-04-20
    • 2018-11-08
    • 2018-01-23
    • 2016-09-15
    • 2017-03-04
    • 2018-09-24
    • 1970-01-01
    相关资源
    最近更新 更多