* What went wrong:
Could not resolve all files for configuration ':app:debugCompileClasspath'.
> Could not find common.jar (android.arch.core:common:1.0.0).
Searched in the following locations:
https://jcenter.bintray.com/android/arch/core/common/1.0.0/common-1.0.0.jar
Is there a path to place this file to avoid loading from internet? Or what file should be hacked to replace the url? And why is this happening? Who failed? I’m really annoyed. Today I need the app. It’s friday and I want to go. Funny, I changed nothing. I did this build process every day hour for hour.
On a new ionic project + android platform the build works. I compared the versions of packages and plugins. Nothing helps. Any ideas? Who needs the file common-1.0.0.jar?
here is proposed solution: add this line to your build.gradle file:
// Allow plugins to declare Maven dependencies via build-extras.gradle.
allprojects {
repositories {
mavenCentral();
maven { url 'https://maven.google.com' } //add this line
jcenter()
}
}
It instructs gradle to use another repository do download files it needs. It seems to be working, thought I really don’t understand why build process has to be dependent on downloading files from remote repository. Quite annoying!