我使用的几个第三方.jar库正在抛出数千个Lint警告,如下所示:
Error:warning: Ignoring InnerClasses attribute for an anonymous inner class
Error:(com.inneractive.api.ads.sdk.IAmraidWebView$a) 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.
如何在build.gradle中使用lintOptions
来抑制这些警告?
android {
lintOptions {
disable 'WHAT_IS_THE_NAME_OF_THE_RULE_TO_DISABLE_HERE?'
}
}