1 问题
release apk运行奔溃提示错误如下
Fatal Exception: org.greenrobot.greendao.DaoException: Could not init DAOConfigat org.greenrobot.greendao.h.a.<init>(DaoConfig.java:28)at org.greenrobot.greendao.b.a(AbstractDaoMaster.java:1)
2 解决办法
proguard-rules.pro加入下面的代码
### greenDAO 3
-keepclassmembers class * extends org.greenrobot.greendao.AbstractDao {
public static java.lang.String TABLENAME;
}
-keep class **$Properties { *; }# If you do not use SQLCipher:
-dontwarn org.greenrobot.greendao.database.**
-keep 包名.greendao.gen.**{*;}