Android app crashes when Proguard is enabled

前端 未结 3 1003
后悔当初
后悔当初 2021-01-19 21:26

Every time I Export Signed Application from eclipse and install the apk file onto my phone, the app would crash. This only happens with Proguard enabled.

Here is my

3条回答
  •  遥遥无期
    2021-01-19 22:10

    I finally solved it. This is what I forgot to add to my Proguard file. The getters and setters.

    -keep public class com.example.YourModelClassName {
      public *** get*();
      public void set*(***);
    } 
    

提交回复
热议问题