gpt4 book ai didi

android - 如何解决gradle警告:忽略匿名内部类的InnerClasses属性

转载 作者:行者123 更新时间:2023-12-03 06:26:44 25 4
gpt4 key购买 nike

如何解决以下gradle警告?我通过这一行添加了库:

implementation 'org.apache.commons:commons-collections4:4.1'


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

最佳答案

尝试在ProGuard配置中添加-keepattributes InnerClasses
编辑:尝试使用-dontoptimize

关于android - 如何解决gradle警告:忽略匿名内部类的InnerClasses属性,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46601972/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com