Hello,
I'm trying to build an application using greendao with proguard.
I have no problem during compilation but I have the following exception when I'm running the app :
Caused by: de.greenrobot.dao.DaoException: Could not init DAOConfig
at de.greenrobot.dao.DaoConfig.<init>(Unknown Source)
at de.greenrobot.dao.AbstractDaoMaster.registerDaoClass(Unknown Source)
at com.siu.android.saintmande.d.<init>(Unknown Source)
at com.siu.android.saintmande.b.a.b(Unknown Source)
at com.siu.android.saintmande.e.b.doInBackground(Unknown Source)
at android.os.AsyncTask$2.call(AsyncTask.java:185)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)
... 4 more
Caused by: java.lang.NoSuchFieldException: TABLENAME
at java.lang.ClassCache.findFieldByName(ClassCache.java:510)
at java.lang.Class.getField(Class.java:905)
... 11 more
I've tried to add something like this in the proguard.cfg :
-keep public class de.greenrobot.dao
-keep public class de.greenrobot.dao.** {
public protected private *;
}
But still the same error.
Any idea ?
Thanks.