I have the following build error:
- What went wrong:
Could not resolve all files for configuration ‘:app:debugAndroidTestRuntimeClasspath’.
Could not find runtime.jar (android.arch.lifecycle:runtime:1.1.1).
Searched in the following locations:
https://jcenter.bintray.com/android/arch/lifecycle/runtime/1.1.1/runtime-1.1.1.jar
Build scan: Build Scan® | Gradle Cloud Services
It builds locally but not on Jenkins. What is very weird about this is that the library in questions is available via the google()
repo. Here’s our build script:
buildscript {
apply from: 'deps.gradle'
repositories {
google()
jcenter()
maven { url 'https://maven.fabric.io/public' }
maven { url 'https://plugins.gradle.org/m2/' }
}
// etc
The reason I’m posting this here is because it seems like a Gradle issue. Why is the error reporting it can’t find it on jcenter? Why isn’t it searching the other repos?