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

前端 未结 8 1620
灰色年华
灰色年华 2020-12-08 02:06

I don\'t know how I can describe this issue. I searched a lot, but I didn\'t find any solution.

Also this solution did not help me -keepattributes EnclosingMethod:

8条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-08 02:58

    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.

提交回复
热议问题