我启动了一个新的APP,其中包含一些在JDK1.6中编译的依赖项。使用proguard在调试模式下成功构建了APP,但是发生了许多警告,如下所示。
Error:warning: Ignoring InnerClasses attribute for an anonymous inner class
Error:<dependency package name> that doesn't come with an
Error:this warning is that reflective operations on this class will incorrectly
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:indicate that it is *not* an inner class.
在我的proguard文件中,我已添加-keep <dependency package name>{*;}
和dontwarn <dependency package name>
。我应该怎么做才能使警告消失而不是忽略它们?