相关疑难解决方法(0)

编译期间"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
查看次数

Proguard不会混淆类名,只有方法被混淆

我尝试在android studio中使用Proguard,但似乎Proguard并没有混淆类名,例如,我的app结构和配置:

在此输入图像描述

和配置

在此输入图像描述

但是当我尝试在应用程序中触发异常时:

在此输入图像描述

ADB控制台中列出了该异常:

在此输入图像描述

只有方法被混淆,MainActivity.class不是

android proguard android-proguard

4
推荐指数
1
解决办法
8872
查看次数