android Dx warning: Ignoring InnerClasses attribute for an anonymous inner class jar file issue

北战南征 提交于 2019-12-19 07:48:13

问题


i have used lcrypto-j2me-144.jar jar file to encrypt the user name and password in my application it is running fine but when i look into console it is giving me , basically it is j2me jar file, please guide me to get rid of this issue.

Dx warning: Ignoring InnerClasses attribute for an anonymous inner class
(org.bouncycastle.asn1.ASN1Sequence$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.

回答1:


Just fyi, this can also happen when compiling for java 1.7 and the library have been through proguard, adding this will solve the problem when compiling the library:

-keepattributes EnclosingMethod



来源:https://stackoverflow.com/questions/26993474/android-dx-warning-ignoring-innerclasses-attribute-for-an-anonymous-inner-class

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!