Could not resolve all artifacts for configuration ':classpath'

Hey all,

last build was 1 day ago and code haven’t changed much since (definitely not dependencies) then but this morning I started to see this in our android job.

Anyone has an idea what can cause this? Is this something in general realted to android tools infra or specific to bitrise? thanks.

Could not resolve all artifacts for configuration ':classpath'.
   > Could not resolve org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.2.71.
     Required by:
         project : > com.android.tools.build:gradle:3.2.1
         project : > com.android.tools.build:gradle:3.2.1 > com.android.tools.build:builder:3.2.1
         project : > com.android.tools.build:gradle:3.2.1 > com.android.tools.lint:lint-gradle-api:26.2.1
         project : > com.android.tools.build:gradle:3.2.1 > com.android.tools.build:gradle-api:3.2.1
         project : > com.android.tools.build:gradle:3.2.1 > androidx.databinding:databinding-compiler-common:3.2.1
         project : > com.android.tools.build:gradle:3.2.1 > com.android.tools.build:builder:3.2.1 > com.android.tools:sdk-common:26.2.1
         project : > com.android.tools.build:gradle:3.2.1 > com.android.tools.build:builder:3.2.1 > com.android.tools:common:26.2.1
         project : > com.android.tools.build:gradle:3.2.1 > com.android.tools.build:builder:3.2.1 > com.android.tools.build:manifest-merger:26.2.1
         project : > com.android.tools.build:gradle:3.2.1 > com.android.tools.build:builder:3.2.1 > com.android.tools:sdklib:26.2.1 > com.android.tools:repository:26.2.1
      > Could not resolve org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.2.71.
         > Could not get resource 'https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-stdlib-jdk8/1.2.71/kotlin-stdlib-jdk8-1.2.71.pom'.
            > Could not GET 'https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-stdlib-jdk8/1.2.71/kotlin-stdlib-jdk8-1.2.71.pom'. Received status code 502 from server: Bad Gateway
   > Could not resolve org.ow2.asm:asm:6.0.
     Required by:
         project : > com.android.tools.build:gradle:3.2.1
         project : > com.android.tools.build:gradle:3.2.1 > com.android.tools.build:builder:3.2.1
         project : > com.android.tools.build:gradle:3.2.1 > com.android.tools.build.jetifier:jetifier-processor:1.0.0-alpha10
      > Skipped due to earlier error
   > Could not resolve org.ow2.asm:asm-analysis:6.0.
     Required by:
         project : > com.android.tools.build:gradle:3.2.1
      > Skipped due to earlier error
   > Could not resolve org.ow2.asm:asm-commons:6.0.
     Required by:
         project : > com.android.tools.build:gradle:3.2.1
         project : > com.android.tools.build:gradle:3.2.1 > com.android.tools.build:builder:3.2.1
         project : > com.android.tools.build:gradle:3.2.1 > com.android.tools.build.jetifier:jetifier-processor:1.0.0-alpha10
      > Skipped due to earlier error
   > Could not resolve org.ow2.asm:asm-util:6.0.
     Required by:
         project : > com.android.tools.build:gradle:3.2.1
         project : > com.android.tools.build:gradle:3.2.1 > com.android.tools.build:builder:3.2.1
         project : > com.android.tools.build:gradle:3.2.1 > com.android.tools.build.jetifier:jetifier-processor:1.0.0-alpha10
      > Skipped due to earlier error
   > Could not resolve net.sf.jopt-simple:jopt-simple:4.9.
     Required by:
         project : > com.android.tools.build:gradle:3.2.1
         project : > com.android.tools.build:gradle:3.2.1 > com.android.tools.build:builder:3.2.1
      > Skipped due to earlier error
   > Could not resolve net.sf.proguard:proguard-gradle:6.0.3.
     Required by:
         project : > com.android.tools.build:gradle:3.2.1
      > Skipped due to earlier error
   > Could not resolve com.squareup:javawriter:2.5.0.
     Required by:
         project : > com.android.tools.build:gradle:3.2.1 > com.android.tools.build:builder:3.2.1
      > Skipped due to earlier error
   > Could not resolve org.bouncycastle:bcpkix-jdk15on:1.56.
     Required by:
         project : > com.android.tools.build:gradle:3.2.1 > com.android.tools.build:builder:3.2.1
         project : > com.android.tools.build:gradle:3.2.1 > com.android.tools.build:builder:3.2.1 > com.android.tools:sdk-common:26.2.1
         project : > com.android.tools.build:gradle:3.2.1 > com.android.tools.build:builder:3.2.1 > com.android.tools.build:apkzlib:3.2.1
      > Skipped due to earlier error
   > Could not resolve org.bouncycastle:bcprov-jdk15on:1.56.
     Required by:
         project : > com.android.tools.build:gradle:3.2.1 > com.android.tools.build:builder:3.2.1
         project : > com.android.tools.build:gradle:3.2.1 > com.android.tools.build:builder:3.2.1 > com.android.tools:sdk-common:26.2.1
         project : > com.android.tools.build:gradle:3.2.1 > com.android.tools.build:builder:3.2.1 > com.android.tools.build:apkzlib:3.2.1
      > Skipped due to earlier error
   > Could not resolve org.ow2.asm:asm-tree:6.0.
     Required by:
         project : > com.android.tools.build:gradle:3.2.1 > com.android.tools.build:builder:3.2.1
      > Skipped due to earlier error
   > Could not resolve it.unimi.dsi:fastutil:7.2.0.
     Required by:
         project : > com.android.tools.build:gradle:3.2.1 > com.android.tools.build:builder:3.2.1
      > Skipped due to earlier error
   > Could not resolve com.googlecode.json-simple:json-simple:1.1.
     Required by:
         project : > com.android.tools.build:gradle:3.2.1 > com.android.tools.build:builder:3.2.1
      > Skipped due to earlier error
   > Could not resolve com.google.guava:guava:23.0.
     Required by:
         project : > com.android.tools.build:gradle:3.2.1 > com.android.tools.analytics-library:shared:26.2.1
         project : > com.android.tools.build:gradle:3.2.1 > com.android.tools.analytics-library:crash:26.2.1
         project : > com.android.tools.build:gradle:3.2.1 > com.android.tools.lint:lint-gradle-api:26.2.1
         project : > com.android.tools.build:gradle:3.2.1 > com.android.tools.build:gradle-api:3.2.1
         project : > com.android.tools.build:gradle:3.2.1 > androidx.databinding:databinding-compiler-common:3.2.1
         project : > com.android.tools.build:gradle:3.2.1 > com.android.tools.build:builder:3.2.1 > com.android.tools:common:26.2.1
         project : > com.android.tools.build:gradle:3.2.1 > com.android.tools.build:builder:3.2.1 > com.android.tools.analytics-library:tracker:26.2.1
         project : > com.android.tools.build:gradle:3.2.1 > com.android.tools.build:builder:3.2.1 > com.android.tools.build:apkzlib:3.2.1
      > Skipped due to earlier error
   > Could not resolve com.google.code.gson:gson:2.8.0.
     Required by:
         project : > com.android.tools.build:gradle:3.2.1 > com.android.tools.analytics-library:shared:26.2.1
         project : > com.android.tools.build:gradle:3.2.1 > androidx.databinding:databinding-compiler-common:3.2.1
         project : > com.android.tools.build:gradle:3.2.1 > com.android.tools.build.jetifier:jetifier-core:1.0.0-alpha10
         project : > com.android.tools.build:gradle:3.2.1 > com.android.tools.build:builder:3.2.1 > com.android.tools:sdklib:26.2.1
         project : > com.android.tools.build:gradle:3.2.1 > com.android.tools.build:builder:3.2.1 > com.android.tools.build:manifest-merger:26.2.1
      > Skipped due to earlier error
   > Could not resolve org.apache.httpcomponents:httpmime:4.5.2.
     Required by:
         project : > com.android.tools.build:gradle:3.2.1 > com.android.tools.analytics-library:crash:26.2.1
         project : > com.android.tools.build:gradle:3.2.1 > com.android.tools.build:builder:3.2.1 > com.android.tools:sdklib:26.2.1
      > Skipped due to earlier error
   > Could not resolve org.apache.httpcomponents:httpcore:4.4.5.
     Required by:
         project : > com.android.tools.build:gradle:3.2.1 > com.android.tools.analytics-library:crash:26.2.1
         project : > com.android.tools.build:gradle:3.2.1 > com.android.tools.build:builder:3.2.1 > com.android.tools:sdklib:26.2.1
      > Skipped due to earlier error
   > Could not resolve org.apache.httpcomponents:httpclient:4.5.2.
     Required by:
         project : > com.android.tools.build:gradle:3.2.1 > com.android.tools.analytics-library:crash:26.2.1
      > Skipped due to earlier error
   > Could not resolve org.jetbrains.kotlin:kotlin-reflect:1.2.0.
     Required by:
         project : > com.android.tools.build:gradle:3.2.1 > com.android.tools.lint:lint-gradle-api:26.2.1
         project : > com.android.tools.build:gradle:3.2.1 > com.android.tools.build:builder:3.2.1 > com.android.tools:sdk-common:26.2.1
      > Skipped due to earlier error
   > Could not resolve org.antlr:antlr4:4.5.3.
     Required by:
         project : > com.android.tools.build:gradle:3.2.1 > androidx.databinding:databinding-compiler-common:3.2.1
      > Skipped due to earlier error
   > Could not resolve commons-io:commons-io:2.4.
     Required by:
         project : > com.android.tools.build:gradle:3.2.1 > androidx.databinding:databinding-compiler-common:3.2.1
      > Skipped due to earlier error
   > Could not resolve com.googlecode.juniversalchardet:juniversalchardet:1.0.3.
     Required by:
         project : > com.android.tools.build:gradle:3.2.1 > androidx.databinding:databinding-compiler-common:3.2.1
      > Skipped due to earlier error
   > Could not resolve com.squareup:javapoet:1.8.0.
     Required by:
         project : > com.android.tools.build:gradle:3.2.1 > androidx.databinding:databinding-compiler-common:3.2.1
      > Skipped due to earlier error
   > Could not resolve com.google.auto.value:auto-value:1.5.2.
     Required by:
         project : > com.android.tools.build:gradle:3.2.1 > com.android.tools.build:bundletool:0.5.0
      > Skipped due to earlier error
   > Could not resolve com.google.errorprone:error_prone_annotations:2.2.0.
     Required by:
         project : > com.android.tools.build:gradle:3.2.1 > com.android.tools.build:bundletool:0.5.0
      > Skipped due to earlier error
   > Could not resolve com.google.guava:guava:23.0.
     Required by:
         project : > com.android.tools.build:gradle:3.2.1 > com.android.tools.build:bundletool:0.5.0
      > Skipped due to earlier error
   > Could not resolve com.google.protobuf:protobuf-java:3.4.0.
     Required by:
         project : > com.android.tools.build:gradle:3.2.1 > com.android.tools.build:bundletool:0.5.0
         project : > com.android.tools.build:gradle:3.2.1 > com.android.tools.build:builder:3.2.1 > com.android.tools:sdk-common:26.2.1
         project : > com.android.tools.build:gradle:3.2.1 > com.android.tools.build:builder:3.2.1 > com.android.tools.analytics-library:protos:26.2.1
         project : > com.android.tools.build:gradle:3.2.1 > com.android.tools.build:builder:3.2.1 > com.android.tools.analytics-library:tracker:26.2.1
         project : > com.android.tools.build:gradle:3.2.1 > com.android.tools.build:bundletool:0.5.0 > com.android.tools.build:aapt2-proto:0.3.1
      > Skipped due to earlier error
   > Could not resolve com.google.protobuf:protobuf-java-util:3.4.0.
     Required by:
         project : > com.android.tools.build:gradle:3.2.1 > com.android.tools.build:bundletool:0.5.0
      > Skipped due to earlier error
   > Could not resolve org.jetbrains.kotlin:kotlin-stdlib:1.2.20.
     Required by:
         project : > com.android.tools.build:gradle:3.2.1 > com.android.tools.build.jetifier:jetifier-core:1.0.0-alpha10
         project : > com.android.tools.build:gradle:3.2.1 > com.android.tools.build.jetifier:jetifier-processor:1.0.0-alpha10
      > Skipped due to earlier error
   > Could not resolve org.jdom:jdom2:2.0.6.
     Required by:
         project : > com.android.tools.build:gradle:3.2.1 > com.android.tools.build.jetifier:jetifier-processor:1.0.0-alpha10
      > Skipped due to earlier error
   > Could not resolve org.apache.commons:commons-compress:1.12.
     Required by:
         project : > com.android.tools.build:gradle:3.2.1 > com.android.tools.build:builder:3.2.1 > com.android.tools:sdklib:26.2.1
         project : > com.android.tools.build:gradle:3.2.1 > com.android.tools.build:builder:3.2.1 > com.android.tools:sdklib:26.2.1 > com.android.tools:repository:26.2.1
      > Skipped due to earlier error
   > Could not resolve javax.inject:javax.inject:1.
     Required by:
         project : > com.android.tools.build:gradle:3.2.1 > com.android.tools.build:builder:3.2.1 > com.android.tools:sdk-common:26.2.1
      > Skipped due to earlier error
   > Could not resolve net.sf.kxml:kxml2:2.3.0.
     Required by:
         project : > com.android.tools.build:gradle:3.2.1 > com.android.tools.build:builder:3.2.1 > com.android.tools.build:manifest-merger:26.2.1
         project : > com.android.tools.build:gradle:3.2.1 > com.android.tools.build:builder:3.2.1 > com.android.tools.ddms:ddmlib:26.2.1
         project : > com.android.tools.build:gradle:3.2.1 > com.android.tools.build:builder:3.2.1 > com.android.tools:sdklib:26.2.1 > com.android.tools.layoutlib:layoutlib-api:26.2.1
      > Skipped due to earlier error
   > Could not resolve com.google.code.findbugs:jsr305:1.3.9.
     Required by:
         project : > com.android.tools.build:gradle:3.2.1 > com.android.tools.build:builder:3.2.1 > com.android.tools.build:apkzlib:3.2.1
      > Skipped due to earlier error
   > Could not resolve org.jetbrains:annotations:13.0.
     Required by:
         project : > com.android.tools.build:gradle:3.2.1 > com.android.tools.build:builder:3.2.1 > com.android.tools:sdklib:26.2.1 > com.android.tools.layoutlib:layoutlib-api:26.2.1
      > Skipped due to earlier error
   > Could not resolve com.sun.activation:javax.activation:1.2.0.
     Required by:
         project : > com.android.tools.build:gradle:3.2.1 > com.android.tools.build:builder:3.2.1 > com.android.tools:sdklib:26.2.1 > com.android.tools:repository:26.2.1
      > Skipped due to earlier error
   > Could not resolve org.glassfish.jaxb:jaxb-runtime:2.2.11.
     Required by:
         project : > com.android.tools.build:gradle:3.2.1 > com.android.tools.build:builder:3.2.1 > com.android.tools:sdklib:26.2.1 > com.android.tools:repository:26.2.1
      > Skipped due to earlier error
   > Could not resolve com.google.jimfs:jimfs:1.1.
     Required by:
         project : > com.android.tools.build:gradle:3.2.1 > com.android.tools.build:builder:3.2.1 > com.android.tools:sdklib:26.2.1 > com.android.tools:repository:26.2.1
      > Skipped due to earlier error
1 Like

I am able to access this url from my computer:

GET 'https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-stdlib-jdk8/1.2.71/kotlin-stdlib-jdk8-1.2.71.pom'

any idea why does it fail in bitrise?

1 Like

Hy @max

unfortunately this is really common with jcenter :thinking:
I think if you rebuild it would work, but I would recommend changin the repo order in your build.gradle file
to something like this:

repositoryes {
    google()
    mavenCentral()
    jcenter()
}

reordering haven’t helped. restarting the build as well.

apparently jcenter is experiencing issues :frowning:

https://status.bintray.com/#

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.