proguard causing EnumMap NPE on dynamically declared method
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm adding obfuscation via proguard/maven to a java application as we prepare it for distribution. During the process, it errors out with: Note: ...eventlib.EventManager accesses a declared method 'getHandlerList()' dynamically It then lists a dozen classes with that method with Maybe this is... and it recommends using -keep to avoid the problem. When I do add -keep public class my.package.info.eventlib.HandlerList { *; } to the build process, the error goes away, but I see the following notices: [proguard] Note: the configuration keeps the