Error messages during build apk

hi all,

since today I receive a couple of error messages, and I’m not able to find the cause… would be great to get some pointers where to look in the code. I did a lot of changes in the code and no errors appeared in the MainActivity itself, and the code works fine in the emulator. However, the apk file cannot be created.

i have abortOnError false in my Lintoptions in the gradle script.
I can find 100s of google results, but cannot relate solutions to my situation.

Warning:WARNING: Dependency commons-logging:commons-logging:1.0.4 is ignored for debug as it may be conflicting with the internal version provided by Android.

Error:warning: Ignoring InnerClasses attribute for an anonymous inner class

this one is actually quite long. I only copied the first lines to my post…
.
Error:(org.apache.log4j.chainsaw.ControlPanel$2) that doesn’t come with an
associated EnclosingMethod attribute. This class was probably produced by a
compiler that did not target the modern .class file format. The recommended
solution is to recompile the class from source, using an up-to-date compiler

The errors seem related to the logging framework in use?

GraphHopper requires a single mandatory logging dependency, namely slf4j-api.jar. And optionally a logging framework binding of your choice (e.g. here).
If no binding is found on the class path, then SLF4J will default to a no-operation implementation.

I’m not aware of any changes related to logging but I must check the code to be sure. thanks for your reply. I will post here later today if it is resolved or not.

well, checked the code, held it next to the code of yesterday. except for the new parts there are no differences that i could relate to these error messages.
i already have the code you linked to in the gradle script. Now I remember I also had an Android Studio update yesterday but cannot remember exactly what that was about…
Could Android Studio be causing the issue?

Can you provide your build.gradle (s) and if you use any jars in your project?
e.g. does the GraphHopper Android sample works fine in your IDE?

BTW if you put the exceptions in web search you’ll find references with suggestions.

prj script:

// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
mavenCentral()
}
dependencies {
classpath ‘com.android.tools.build:gradle:2.2.2’
}

}

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

app script:

apply plugin: ‘com.android.application’

android {
compileSdkVersion 25
buildToolsVersion “25.0.1”

defaultConfig {
    applicationId "com.graphhopper.android"
    minSdkVersion 10
    targetSdkVersion 22
}

packagingOptions {
    exclude 'META-INF/NOTICE.txt'
    exclude 'META-INF/NOTICE'
    exclude 'META-INF/LICENSE'
    exclude 'META-INF/notice'
    exclude 'META-INF/notice.txt'
    exclude 'META-INF/license'
    exclude 'META-INF/license.txt'
}

buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
    }
}

lintOptions {
    disable 'InvalidPackage'
    abortOnError false
}

/** only necessary if you need to use latest SNAPSHOT
configurations.all {// check for updates every build
resolutionStrategy.cacheChangingModulesFor 0, ‘seconds’}**/

repositories {
    jcenter()
    mavenCentral()

    maven { url "https://oss.sonatype.org/content/repositories/snapshots/com/graphhopper/" }
}

dependencies {
    compile(group: 'com.graphhopper', name: 'graphhopper-core', version: '0.9-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 'com.graphhopper:graphhopper-map-matching-core:0.9-SNAPSHOT'

    compile 'org.mapsforge:vtm-android:0.6.0:natives-armeabi'
    compile 'org.mapsforge:vtm-android:0.6.0:natives-armeabi-v7a'
    compile 'org.mapsforge:vtm-android:0.6.0:natives-x86'

    compile 'org.mapsforge:vtm:0.6.0'
    compile 'org.mapsforge:vtm-android:0.6.0'
    compile 'org.mapsforge:vtm-jts:0.6.0'
    compile 'org.mapsforge:vtm-themes:0.6.0'
    compile 'com.caverock:androidsvg:1.2.2-beta-1'
    compile 'com.vividsolutions:jts:1.13'
    compile 'com.android.support:support-v4:25.0.1'

    compile 'org.slf4j:slf4j-api:1.7.21'
    compile 'org.slf4j:slf4j-android:1.7.21'
}

}