【问题标题】:Error:Could not find com.google.firebase:firebase-plugins:1.1.5错误:找不到 com.google.firebase:firebase-plugins:1.1.5
【发布时间】:2019-05-11 17:32:04
【问题描述】:

无法构建代码出错。

CONFIGURE FAILED in 5s
Could not find com.google.firebase:firebase-plugins:1.1.5.
Searched in the following locations:
    https://dl.google.com/dl/android/maven2/com/google/firebase/firebase-plugins/1.1.5/firebase-plugins-1.1.5.pom
    https://dl.google.com/dl/android/maven2/com/google/firebase/firebase-plugins/1.1.5/firebase-plugins-1.1.5.jar
    https://jcenter.bintray.com/com/google/firebase/firebase-plugins/1.1.5/firebase-plugins-1.1.5.pom
    https://jcenter.bintray.com/com/google/firebase/firebase-plugins/1.1.5/firebase-plugins-1.1.5.jar
    https://dl.bintray.com/android/android-tools/com/google/firebase/firebase-plugins/1.1.5/firebase-plugins-1.1.5.pom
    https://dl.bintray.com/android/android-tools/com/google/firebase/firebase-plugins/1.1.5/firebase-plugins-1.1.5.jar
Required by:
    project :

经过大量谷歌搜索没有找到任何可行的解决方案。

顶级gradle文件 应用插件:'com.google.gms.google-services' 已经添加了。

google(),jcentre 仓库添加到 build.gradle 文件中。

【问题讨论】:

  • 请编辑您的问题以显示重现此问题的整个最小 build.gradle 配置。
  • 这听起来与 Google Play 服务插件的问题有关(但不完全相同)。 jCenter 中缺少最新版本的构建工件。它正在被调查。 stackoverflow.com/questions/53706565/…

标签: android firebase android-studio android-gradle-plugin


【解决方案1】:

今天早上我遇到了同样的问题,我解决了将以下内容添加到我的项目的存储库块中:

jcenter {url 'https://firebase.bintray.com/gradle'}

【讨论】:

【解决方案2】:

这似乎是另一个工件丢失的情况。我发现还有另一个名为 com.google.firebase:perf-plugin:1.1.5 的工件,并使用它而不是 com.google.firebase:firebase-plugins:1.1.5 来使我的构建再次工作。但不知何故,这在任何地方都没有记录,所以我不确定这是否是有意更改名称。

【讨论】:

    猜你喜欢
    • 2018-12-28
    • 2021-07-17
    • 2017-02-19
    • 2016-11-12
    • 2020-07-27
    • 2018-10-15
    • 2018-11-30
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多