gpt4 book ai didi

android - 更新 Gradle 后出现异常 'Could not resolve com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.5'

转载 作者:行者123 更新时间:2023-12-05 00:02:07 26 4
gpt4 key购买 nike

这个问题在这里已经有了答案:





jcenter.bintray.com is down Error: 502 Bad Gateway [closed]

(8 个回答)


6 个月前关闭。




我今天更新了我的 Gradle,现在我收到了这个错误:

  > Could not resolve com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.5.
> Could not get resource 'https://dl.bintray.com/kotlin/kotlin-eap/com/jfrog/bintray/gradle/gradle-bintray-plugin/1.8.5/gradle-bintray-plugin-1.8.5.pom'.
> Could not HEAD 'https://dl.bintray.com/kotlin/kotlin-eap/com/jfrog/bintray/gradle/gradle-bintray-plugin/1.8.5/gradle-bintray-plugin-1.8.5.pom'. Received status code 502 from server: Bad Gateway
显然,服务器有问题( Received status code 502 from server: Bad Gateway )。我应该怎么做才能修复它?

最佳答案

只需添加 maven { url 'https://maven.google.com' }在您的存储库上 build.gradle项目层面。
看起来像这样:

buildscript {

repositories {
maven { url 'https://maven.google.com' }
...
}
...
}

关于android - 更新 Gradle 后出现异常 'Could not resolve com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.5',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/70729933/

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