【问题标题】:Could not find org.apache.httpcomponents:httpclient:4.5.6 when adding Firebase Crashlytics添加 Firebase Crashlytics 时找不到 org.apache.httpcomponents:httpclient:4.5.6
【发布时间】:2020-06-10 11:58:12
【问题描述】:

我删除了 Fabrics Crashlytics 以将其替换为 Firebase Crashlytics。

我按照这里提到的步骤操作:https://firebase.google.com/docs/crashlytics/upgrade-sdk?platform=android

我得到错误:

Could not find org.apache.httpcomponents:httpclient:4.5.6.
Searched in the following locations:
  - https://dl.google.com/dl/android/maven2/org/apache/httpcomponents/httpclient/4.5.6/httpclient-4.5.6.pom
If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
Required by:
    project :myProject > com.google.firebase:firebase-crashlytics-gradle:2.1.1 > com.google.firebase:firebase-crashlytics-buildtools:2.1.1

你知道如何解决这个问题吗?

谢谢。

【问题讨论】:

    标签: java android firebase crashlytics


    【解决方案1】:

    Google 的 Maven 存储库不跟踪 org.apache.httpcomponents。这可能有效:

    buildscript {
        repositories {
            google()
            mavenCentral()
        }
        dependencies {
            classpath "com.google.firebase:firebase-crashlytics-gradle:2.1.1"
        }
    }
    

    【讨论】:

    • Firebaser 在这里 - 我同意这一点。将 mavenCentral()(或者更好的是 jcenter())添加到您的 buildscript 存储库应该可以解决这个问题。
    猜你喜欢
    • 2021-08-08
    • 1970-01-01
    • 2020-09-13
    • 1970-01-01
    • 1970-01-01
    • 2020-11-09
    • 2022-12-01
    • 2018-08-09
    • 2021-02-11
    相关资源
    最近更新 更多