gpt4 book ai didi

android - Fabric maven repo 导致 gradle 构建缓慢

转载 作者:塔克拉玛干 更新时间:2023-11-01 21:50:47 25 4
gpt4 key购买 nike

从使用 Crashlytics maven 存储库升级到新的 Fabric maven 存储库和 gradle 插件后,我的 gradle 构建变得非常慢。

问题似乎是由 Fabric maven 存储库在 gradle 尝试解析依赖项时返回 401 未授权错误引起的:

Failed to get resource: GET. [HTTP HTTP/1.1 401 Unauthorized: https://maven.fabric.io/repo/com/android/support/recyclerview-v7/maven-metadata.xml]
Failed to get resource: GET. [HTTP HTTP/1.1 401 Unauthorized: https://maven.fabric.io/repo/com/android/support/appcompat-v7/maven-metadata.xml]
Failed to get resource: GET. [HTTP HTTP/1.1 401 Unauthorized: https://maven.fabric.io/repo/com/android/support/support-v4/maven-metadata.xml]
Failed to get resource: GET. [HTTP HTTP/1.1 401 Unauthorized: https://maven.fabric.io/repo/com/google/android/gms/play-services/maven-metadata.xml]
Failed to get resource: GET. [HTTP HTTP/1.1 401 Unauthorized: https://maven.fabric.io/repo/com/android/support/support-annotations/21.0.2/support-annotations-21.0.2.pom]
Failed to get resource: GET. [HTTP HTTP/1.1 401 Unauthorized: https://maven.fabric.io/repo/com/android/support/mediarouter-v7/19.0.1/mediarouter-v7-19.0.1.pom]
Failed to get resource: GET. [HTTP HTTP/1.1 401 Unauthorized: https://maven.fabric.io/repo/com/android/support/support-annotations/maven-metadata.xml]
Failed to get resource: GET. [HTTP HTTP/1.1 401 Unauthorized: https://maven.fabric.io/repo/com/android/support/recyclerview-v7/maven-metadata.xml]
Failed to get resource: GET. [HTTP HTTP/1.1 401 Unauthorized: https://maven.fabric.io/repo/com/android/support/appcompat-v7/maven-metadata.xml]
Failed to get resource: GET. [HTTP HTTP/1.1 401 Unauthorized: https://maven.fabric.io/repo/com/android/support/support-v4/maven-metadata.xml]
Failed to get resource: GET. [HTTP HTTP/1.1 401 Unauthorized: https://maven.fabric.io/repo/com/google/android/gms/play-services/maven-metadata.xml]

旧的 Crashlytics maven 存储库没有返回这些结果。

有没有人遇到过类似的错误,或者找到了解决方法?

最佳答案

此处为 Fabric 制成的 Hemal。

在 build.gradle 中找到这个(应该是 2 个实例):

maven { url 'https://maven.fabric.io/repo' }

并替换为:

maven { url 'https://maven.fabric.io/public' }

关于android - Fabric maven repo 导致 gradle 构建缓慢,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27117609/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com