更新时间:2023-02-02 21:44:53
如果您使用ProGuard,则必须编辑 proguard-rules.pro
If you use ProGuard you must edit proguard-rules.pro
将此行添加到结尾. 模型文件夹中的我的SugarRecords"(模型).
Add this line to end. My SugarRecords ( models ) in models folder.
-keep class com.username.appname.models.** { *; }
并在Android Studio中禁用即时运行功能. 我为SugarORM安装编写了一个教程这里
And disable Instant Run function in Android Studio. I wrote a tutorial for SugarORM installation here