What is the "Ignoring InnerClasses attribute" warning output during compilation?

RMK picture RMK · Jul 22, 2010 · Viewed 37.3k times · Source

I am new to Android and am using the Ical4j library for parsing ICS (Outlook calendar) files.

However, when I build my application in Eclipse, the following warning appears many times in the console:

[2010-07-22 15:58:31 - Google Calendar Upload] 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.)

Which implications does this have? How can I resolve this?

Answer

William picture William · Feb 1, 2016

If your app and your libraries have all been built with a new JDK (7+) and you are still getting this, then you can fix this problem by telling Proguard to keep the enclosing method attribute. Just add the following to your Proguard rules:

-keepattributes EnclosingMethod