Dx warning: Ignoring InnerClasses attribute for an anonymous inner class

来源:互联网 发布:office for mac破解版 编辑:程序博客网 时间:2024/06/05 00:30
[2013-11-14 09:58:00 - JMCatering] Dx warning: Ignoring InnerClasses attribute for an anonymous inner class
(com.umeng.socom.net.h) 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.cfg文件加上如下内容:

-dontwarn com.umeng.** -dontwarn org.apache.commons.**

-dontwarn com.tencent.weibo.sdk.**

-keepattributes *Annotation*

-keepclasscom.umeng*.** {*; }

-keeppublicclass [your_pkg].R$*{

publicstaticfinalint *;

}

-keepclasscom.tencent.open.TDialog$*

-keepclass com.tencent.open.TDialog$* {*;}

-keepclasscom.tencent.open.PKDialog

-keepclass com.tencent.open.PKDialog {*;}

-keepclasscom.tencent.open.PKDialog$*

-keepclass com.tencent.open.PKDialog$* {*;}

-keepclasscom.tencent.mm.sdk.openapi.WXMediaMessage {*;}

-keepclasscom.tencent.mm.sdk.openapi.**implements com.tencent.mm.sdk.openapi.WXMediaMessage$IMediaObject {*;}



添加如下混淆代码可解决问题:
-dontshrink
-dontoptimize




我是检测更新SDK搞定的。



0 0
原创粉丝点击