Android Dx warning: Ignoring InnerClasses attribute for anonymous internal jar file

I used the lcrypto-j2me-144.jar file to encrypt the username and password in my application, it works fine, but when I look at the console it gives me basically this is a j2me jar file, please guide me to get rid of this problem.

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. 
+5
java android jar java-me
Nov 18 '14 at 11:41
source share
1 answer

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

-keepattributes EnclosingMethod

+13
May 22 '15 at 10:34
source share



All Articles