0

I'm trying to build an APK (unsigned). Each time i get the following error

    FAILURE: Build failed with an exception.

    * What went wrong:
A problem occurred configuring root project 'Project Name'.
> Could not resolve all artifacts for configuration ':classpath'.
   > Could not resolve com.android.tools.lint:lint-gradle-api:26.6.1.
     Required by:
         project : > com.android.tools.build:gradle:3.6.1
      > Could not resolve com.android.tools.lint:lint-gradle-api:26.6.1.
         > Could not get resource 'https://jcenter.bintray.com/com/android/tools/lint/lint-gradle-api/26.6.1/lint-gradle-api-26.6.1.pom'.
            > Could not GET 'https://jcenter.bintray.com/com/android/tools/lint/lint-gradle-api/26.6.1/lint-gradle-api-26.6.1.pom'. Received status code 502 from server: Bad Gateway

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 4s

My build.gradle project file looks like this

buildscript {
    repositories {
        jcenter()
        google()
        maven { url 'https://maven.google.com' }
        maven { url 'https://jitpack.io' }
        mavenCentral()
        maven { url "http://nexus.trifork.com/content/repositories/releases" }
        maven { url "http://dl.bintray.com/riteshakya037/maven" }
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.6.1'
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.61"
        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        google()
        jcenter()
        maven { url 'https://maven.google.com' }
        mavenan { url 'https://jitpack.io' }
        mavenCentral()
        maven { url "http://nexus.trifork.com/content/repositories/releases" }
        maven { url "http://dl.bintray.com/riteshakya037/maven" }
    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
}

Trying to access the link provided in the error message https://jcenter.bintray.com/com/android/tools/lint/lint-gradle-api/26.6.1/lint-gradle-api-26.6.1.pom leads me nowhere...

petrrr33
  • 583
  • 9
  • 24

0 Answers0