android studio - 内部类错误

时间:2016-10-28 22:08:49

标签: java android-studio

我在构建项目时遇到这些错误。它成功构建但我不完全确定为什么我会得到它们。我怎么摆脱他们?谢谢

Error:warning: Ignoring InnerClasses attribute for an anonymous inner class
Error:(com.instabug.library.c) 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.
Error:warning: Ignoring InnerClasses attribute for an anonymous inner class

我环顾了几个小时并做了一些人建议在我的proguard-rules.pro文件中添加不同的东西,例如

-keepattributes InnerClasses
-dontoptimize
-dontwarn InnerClasses
-keepattributes EnclosingMethod

我用不同的顺序尝试了这些,没有。

0 个答案:

没有答案