更新 Gradle 后出现异常 'Could not resolve com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.5'
Getting exception 'Could not resolve com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.5' after updating Gradle
我今天更新了我的 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' }
...
}
...
}
我今天更新了我的 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' }
...
}
...
}