天天看点

【已解决】Android GreenDao混淆错误导致崩溃使用GreenDao数据库,混淆发布后运行出现 Could not init DAOConfig

使用GreenDao数据库,混淆发布后运行出现 Could not init DAOConfig

项目混淆日志报错,Could not init DAOConfig

解决:在proguard-rules.pro中加入

-keepclassmembers class * extends de.greenrobot.dao.AbstractDao {  
    public static java.lang.String TABLENAME;  
}  
-keep class **$Properties