我已经使用 lcrypto-j2me-144.jar jar文件来加密我的应用程序中的用户名和密码它运行正常但是当我查看控制台时它给了我,基本上它是j2me jar文件,请指导我摆脱这个问题。
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.
答案 0 :(得分:13)
只是fyi,这在编译java 1.7并且库已经通过proguard时也会发生,添加这将解决编译库时的问题:
-keepattributes EnclosingMethod