App Crashing With Proguard Enabled

后端 未结 2 944
忘掉有多难
忘掉有多难 2021-01-02 19:50

My app runs perfectly without proguard enabled but when I enable it the app crashes right away. I have tried many combinations in the configuration to no avail.

Is t

2条回答
  •  臣服心动
    2021-01-02 20:22

    I found the offending code. I changed my Proguard.cfg to match the following:

    https://github.com/google/gson/blob/9f8ace9ac4c56b82eba1bbd8b44f80e042bda7e0/examples/android-proguard-example/proguard.cfg

    And now everything is working!

提交回复
热议问题