5

I updated my Gradle today and I now get this error:

  > 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

Apparently, there's something wrong with the server (Received status code 502 from server: Bad Gateway). What should I do to fix it?

iamhere
  • 1
  • 1
  • 11

1 Answers1

1

Just add this maven { url 'https://maven.google.com' } on your repositories at build.gradle project level.

Will look like this:

buildscript {

  repositories {
     maven { url 'https://maven.google.com' }
     ...
  }
  ...
}
Wellington Yogui
  • 371
  • 3
  • 18