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

1

5

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.
Sarmatia answered 18/11, 2014 at 11:41 Comment(4)
I'm getting this same issue when trying to import dagger-compiler.Length
have you figured this one out?Statist
i don't find any solution with eclipse IDESarmatia
This is already answered in #3308510Scarlettscarp
G
13

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

Giorgia answered 22/5, 2015 at 22:34 Comment(1)
This won't help if occurs not by proguard.Lalitta

© 2022 - 2024 — McMap. All rights reserved.