Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.
like image 501
Achin Avatar asked Nov 18 '14 11:11

Achin


1 Answers

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

like image 192
Sveinung Kval Bakken Avatar answered Oct 20 '22 10:10

Sveinung Kval Bakken