Proguard: IllegalArgumentException - Unexpected error while evaluating instruction

强颜欢笑 提交于 2019-11-28 13:41:57

This is probably a bug in ProGuard's optimization of enum types. You may be able to work around it by disabling this optimization:

-optimizations !class/unboxing/enum

If you can file a bug report or mail me details, I'll look into it.

(I am the developer of ProGuard)

Weird solution, but I've found a way to fix it. The exact section of the code that was causing the proguard issue was separated out into a different method and at the old location that method was called. This seems to have fixed the problems, even though I'm not sure how it solved it. It just seems more and more like a Proguard bug. It works for me so that is something that others can try if they ever run into this issue.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!