Proguard: IllegalArgumentException - Unexpected error while evaluating instruction

后端 未结 2 1700
故里飘歌
故里飘歌 2020-12-11 18:47

I\'m trying to build a release apk with the proguard enabled. I\'m getting the error below. I will attach the full stacktrace below.

Unexpected error while e         


        
相关标签:
2条回答
  • 2020-12-11 19:11

    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)

    0 讨论(0)
  • 2020-12-11 19:28

    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.

    0 讨论(0)
提交回复
热议问题