Ferry. 2020-08-07 11:02 采纳率: 0%
浏览 177

用eclipse写Android项目,遇见的Dx问题,Ignoring InnerClasses attribute for an anonymous inner class,怎么解决啊

用eclipse写Android项目

遇见了一个问题:
Dx warning: Ignoring InnerClasses attribute for an anonymous inner class
(com.baidu.b.a.i) 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.

这一段出现了3次,后面还有:

[2020-08-07 10:51:05 - CampusNavigationAPP] Dx
PARSE ERROR:
[2020-08-07 10:51:05 - CampusNavigationAPP] Dx unsupported class file version 52.0
...while parsing com/baidu/lbsapi/auth/ErrorMessage.class
[2020-08-07 10:51:05 - CampusNavigationAPP] Dx 1 error; aborting
[2020-08-07 10:51:05 - CampusNavigationAPP] Conversion to Dalvik format failed with error 1

网上找过答案,有的说在proguard-rules.pro文件中添加代码:
-keepattributes EnclosingMethod

然后在build.gradle文件中添加:
multiDexEnabled true

但我试过了,还是不行,这个问题已经折磨我两天了,希望大佬帮帮我!!
  • 写回答

2条回答 默认 最新

  • zqbnqsdsmd 2020-08-07 16:34
    关注
    评论

报告相同问题?

悬赏问题

  • ¥15 安装quartus II18.1时弹出此error,怎么解决?
  • ¥15 想用adb命令做一个通话软件,播放录音
  • ¥30 Pytorch深度学习服务器跑不通问题解决?
  • ¥15 部分客户订单定位有误的问题
  • ¥15 如何在maya程序中利用python编写领子和褶裥的模型的方法
  • ¥15 Bug traq 数据包 大概什么价
  • ¥15 在anaconda上pytorch和paddle paddle下载报错
  • ¥25 自动填写QQ腾讯文档收集表
  • ¥15 DbVisualizer Pro 12.0.7 sql commander光标错位 显示位置与实际不符
  • ¥15 android 打包报错