Android build suddenly failing with update on September 27, 2017 at 15:35 UTC

Error:Could not resolve all files for configuration ‘:app:debugCompileClasspath’.

Could not find com.graphhopper:graphhopper-core:0.10-SNAPSHOT.
Searched in the following locations:
… (Won’t let me put more than 2 “links” in a post, so I’ve stripped out all of the places it checked and failed to find the repository).

My project level build.gradle:
// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
ext.kotlin_version = ‘1.1.4-3’
repositories {
google()
jcenter()

}
dependencies {
    classpath 'com.android.tools.build:gradle:3.0.0-beta4'
    classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"

    // NOTE: Do not place your application dependencies here; they belong
    // in the individual module build.gradle files
}

}

allprojects {
repositories {
google()
jcenter()
maven { url “https://oss.sonatype.org/content/groups/public/” }
maven { url “https://jitpack.io” }
}
}

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

My app level build.gradle:
apply plugin: ‘com.android.application’

apply plugin: ‘kotlin-android’

apply plugin: ‘kotlin-android-extensions’

android {
compileSdkVersion 26
buildToolsVersion “26.0.1”
defaultConfig {
applicationId “com.graphhopper.android”
minSdkVersion 26
targetSdkVersion 26
versionCode 1
versionName “1.0”
testInstrumentationRunner “android.support.test.runner.AndroidJUnitRunner”
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile(‘proguard-android.txt’), ‘proguard-rules.pro’
}
}
}

dependencies {
implementation fileTree(dir: ‘libs’, include: [‘*.jar’])
implementation ‘com.android.support:appcompat-v7:26.1.0’
implementation ‘com.android.support:support-v4:26.1.0’
implementation ‘com.android.support:design:26.1.0’
implementation ‘com.android.support.constraint:constraint-layout:1.0.2’
testImplementation ‘junit:junit:4.12’
androidTestImplementation(‘com.android.support.test.espresso:espresso-core:3.0.1’, {
exclude group: ‘com.android.support’, module: ‘support-annotations’
})
implementation “org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version”

compile(group: 'com.graphhopper', name: 'graphhopper-core', version: '0.10-SNAPSHOT') {
    exclude group: 'com.google.protobuf', module: 'protobuf-java'
    exclude group: 'org.openstreetmap.osmosis', module: 'osmosis-osm-binary'
    exclude group: 'org.apache.xmlgraphics', module: 'xmlgraphics-commons'
}

compile 'org.mapsforge:vtm:0.8.0'
compile 'org.mapsforge:vtm-android:0.8.0'
compile 'org.mapsforge:vtm-android:0.8.0:natives-armeabi'
compile 'org.mapsforge:vtm-android:0.8.0:natives-armeabi-v7a'
compile 'org.mapsforge:vtm-android:0.8.0:natives-x86'
compile('org.mapsforge:vtm-jts:0.8.0') {
    exclude group: 'com.vividsolutions', module: 'jts-core'
}
compile 'org.mapsforge:vtm-themes:0.8.0'
compile 'com.caverock:androidsvg:1.2.2-beta-1'

// compile ‘com.vividsolutions:jts-core:1.14.0’

compile 'org.slf4j:slf4j-api:1.7.25'
compile 'org.slf4j:slf4j-android:1.7.25'

compile 'com.github.MKergall:osmbonuspack:6.4'

// Google Location and Activity Recognition
implementation 'com.google.android.gms:play-services-location:11.4.0'

}

Any help is much appreciated!

I should note that building with 0.9-SNAPSHOT still works for me without any other adjustments in gradle. For now, I will use 0.9, but I’d like to understand why the 0.10 broke and if this is something I need to worry about moving forward. Thanks again for any with some insight!

Any particular reason for the JitPack repository?

Required for:
compile ‘com.github.MKergall:osmbonuspack:6.4’

Using the osmbonuspck for geocoding and reverse geocoding. Also, I’ve tried without JitPack nd osmbonuspack and it doesn’t seem to make a difference.