what is this warning: Ignoring InnerClasses attribute for an anonymous inner class that doesn't come with an associated EnclosingMethod attribute [duplicate]
Asked Answered
W

1

38

I created the 3 layouts HDPI and MDPI and LDPI and I edit the any one of xml file, in console, they show the error:

warning: Ignoring InnerClasses attribute for an anonymous inner class that doesn't come with an associated EnclosingMethod attribute. (This class was probably produced by a broken compiler.)

Whity answered 17/6, 2013 at 6:49 Comment(0)
T
64

It is a common warning when including jar files.

Use below line in proguard to avoid warning

-keepattributes EnclosingMethod
Toneme answered 17/6, 2013 at 6:58 Comment(5)
It actually doesn't answer the question at all.Motor
Maybe this works for release APK, but what about debug builds?Customhouse
@Customhouse debug builds don't run ProGuard (unless you enable yourself) and I think it happens when ProGuard runs.Palladin
@Palladin Then how to get rid of this error in Android Studio??Customhouse
To the above comment, I've replied in this comment. Referencing so that someone who has the same question knows what to do. :)Palladin

© 2022 - 2024 — McMap. All rights reserved.