andruhon/android5xlsx

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

Closed this issue · 3 comments

Hey,

I'm getting this warning from Gradle when I run the application.
(Putting it in a gist as it's quite long)

https://gist.github.com/jackdh/c2be7f49029388c61b4105aa7dcac8d1

My pro guards file is currently empty.

This is my build.gradle

apply plugin: 'android-apt'

android {
    compileSdkVersion 25
    buildToolsVersion "25.0.0"
    defaultConfig {
        multiDexEnabled true
        applicationId "com.example.jack.mhealth"
        minSdkVersion 21
        targetSdkVersion 25
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"

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

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

dependencies {
    androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
        exclude group: 'com.android.support', module: 'support-annotations'
    })
    compile 'com.android.support:multidex:1.0.1'
    compile 'com.google.code.gson:gson:2.4'
    compile 'com.android.support:design:25.1.0'
    compile 'com.android.support:appcompat-v7:25.1.0'
    compile 'com.android.support:support-v4:25.1.0'
    compile 'com.android.support:recyclerview-v7:25.1.0'
    compile 'com.jakewharton:butterknife:8.4.0'
    compile 'com.google.firebase:firebase-auth:10.0.1'
    compile 'com.google.firebase:firebase-database:10.0.1'
    compile 'com.google.firebase:firebase-storage:10.0.1'
    testCompile 'junit:junit:4.12'
    apt 'com.jakewharton:butterknife-compiler:8.4.0'
    // Stetho core
    compile 'com.facebook.stetho:stetho:1.3.1'
    //Optional network helper
    compile 'com.facebook.stetho:stetho-okhttp:1.3.1'
    compile files('src/libs/poi-3.12-android-a.jar')
    compile files('src/libs/poi-ooxml-schemas-3.12-20150511-a.jar')
}

apply plugin: 'com.google.gms.google-services'

I see that in other Android projects as well, it seems to be related to inner classes and did not seem to cause any actual harm when running those applications.

Also the warnings are about code that are not compiled as part of this project, i.e. com.bea.xml.stream and org.apache.xmlbeans and thus there is likely not much that can be done about as it would require recompilation from source of those third party dependencies.

I see is there a way to mute these warnings just for those dependencies?

Closing as not really related to the workaround itself.