android studio错误,Error:warning: Ignoring InnerClasses attribute for an anonymous inner class

rror:warning: Ignoring InnerClasses attribute for an anonymous inner class
Error:(com.unionpay.mobile.android.pboctransaction.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.

大概长上面那样。

这种错误可能会影响打包以及功能,没有无缘无故的错误提示,尽量排查。

1. 大概方向,有类重复引用。比如第三方的jar包里面包含了你工程中已有jar包。可以检查一下jar包。

2. keystore密码错误。

3. 发现jar包内含有反射等地方,会出现此类错误,因stuido生成app时是混淆的,所以请添加混淆规则
在proguard-rules.pro中添加
-keepattributes Signature
-keepattributes EnclosingMethod

4. 此错误只在第一次clean后安装APP出现,打包和之后都不出现,怀疑这种方式可能是as有bug?clean后未生成文件就去检查错误????????


关于此类错误提示,谁有新的解决方案的也请分享下。

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

桃哥543

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值