相关疑难解决方法(0)

Proguard问题"警告:忽略匿名内部类的InnerClasses属性"

我不知道如何描述这个问题.我搜索了很多,但我找不到任何解决方案.

此解决方案也没有帮助我-keepattributes EnclosingMethod:

dependencies {
    compile project(':libraries:material-drawer')
    compile fileTree(dir: 'libs', include: ['*.jar'])
    testCompile 'junit:junit:4.12'
    compile 'com.android.support:appcompat-v7:23.2.0'
    compile 'com.android.support:recyclerview-v7:23.2.0'
    compile 'com.android.support:design:23.2.0'
    compile 'com.google.code.gson:gson:2.4'
    compile 'com.mcxiaoke.volley:library:1.0.19'
    compile 'com.squareup.picasso:picasso:2.5.2'
    compile 'com.squareup.okhttp:okhttp:2.4.0'
    compile 'de.greenrobot:eventbus:2.4.0'
    compile 'com.commit451:PhotoView:1.2.4'
    compile 'com.nineoldandroids:library:2.4.0'
    compile 'com.viewpagerindicator:viewpagerindicator:2.4.3'
    compile('com.github.afollestad.material-dialogs:commons:0.8.5.6@aar') {
        transitive = true
    }
    compile('com.crashlytics.sdk.android:crashlytics:2.5.5@aar') {
        transitive = true;
    }
}
Run Code Online (Sandbox Code Playgroud)

并且jar文件夹包含ormlite-android-4.48.jarormlite-core-4.48.jar.

Proguard文件:

-keepattributes EnclosingMethod
-dontobfuscate

-keep public class * extends android.support.v4.view.ActionProvider {
    public <init>(android.content.Context);
}

-dontwarn android.support.v4.**

#FOR APPCOMPAT 23.1.1:
-keep class !android.support.v7.view.menu.*MenuBuilder*, android.support.v7.** { …
Run Code Online (Sandbox Code Playgroud)

android proguard android-support-library android-proguard

53
推荐指数
3
解决办法
5万
查看次数

编译期间"Ignoring InnerClasses属性"警告输出是什么?

我是Android新手,我正在使用该Ical4j库来解析ICS(Outlook日历)文件.

但是,当我在Eclipse中构建应用程序时,控制台中会多次出现以下警告:

[2010-07-22 15:58:31 - Google日历上传]警告:忽略没有关联的EnclosingMethod属性的匿名内部类的InnerClasses属性.(这个类可能是由一个破碎的编译器产生的.)

这有什么影响?我该如何解决这个问题?

android compiler-warnings

41
推荐指数
2
解决办法
4万
查看次数

修复"忽略InnerClasses属性"警告

我想修复这个警告,给我每个构建此输出:

Error:warning: Ignoring InnerClasses attribute for an anonymous inner class
Error:(com.sun.jna.Native$1) that doesn't come with an
Error:associated EnclosingMethod attribute. This class was probably produced by a
Error:compiler that did not target the modern .class file format. The recommended
Error:solution is to recompile the class from source, using an up-to-date compiler
Error:and without specifying any "-target" type options. The consequence of ignoring
Error:this warning is that reflective operations on this class will incorrectly
Error:indicate that it is *not* an inner class. …
Run Code Online (Sandbox Code Playgroud)

android compilation build gradle android-studio

7
推荐指数
1
解决办法
1741
查看次数