Android之Fatal Exception: org.greenrobot.greendao.DaoException: Could not init DAOConfig
生活随笔
收集整理的這篇文章主要介紹了
Android之Fatal Exception: org.greenrobot.greendao.DaoException: Could not init DAOConfig
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
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.**{*;}?
總結
以上是生活随笔為你收集整理的Android之Fatal Exception: org.greenrobot.greendao.DaoException: Could not init DAOConfig的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Android之判断时间戳是不是今天
- 下一篇: C语言试题二之计算并输出下列多项式值s=