Proguard issue "Warning:Ignoring InnerClasses attribute for an anonymous inner class" Proguard issue "Warning:Ignoring InnerClasses attribute for an anonymous inner class" android android

Proguard issue "Warning:Ignoring InnerClasses attribute for an anonymous inner class"


Try adding

-keepattributes InnerClasses-dontoptimize

to the ProGuard config. That should fix the problem.

It's probable that incompatible optimizations are applied (that probably causes the last line of the error log).

If you want to allow optimizations, it's necessary to fine tune optimizations config with

-optimizations optimization_filter 

option in ProGuard config.


Adding these lines to proguard-rules.pro file fixed my issue.

-keepattributes EnclosingMethod-keepattributes InnerClasses