Achin
Achin

Reputation: 1252

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

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.

Upvotes: 5

Views: 9664

Answers (1)

Sveinung Kval Bakken
Sveinung Kval Bakken

Reputation: 3824

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

Upvotes: 13

Related Questions