NoClassDefFoundError: de.greenrobot.dao.internal.DaoConfig
Im having this error mostly in samsung devices:
java.lang.NoClassDefFoundError: de.greenrobot.dao.internal.DaoConfig
at de.greenrobot.dao.AbstractDaoMaster.registerDaoClass(AbstractDaoMaster.java:44)
at com.bebler.app.data.dao.DaoMaster.<init>(DaoMaster.java:86)
at com.bebler.app.Bebler.setupDatabase(Bebler.java:187)
at com.bebler.app.Bebler.onCreate(Bebler.java:81)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1013)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4889)
at android.app.ActivityThread.access$1600(ActivityThread.java:174)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1381)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:146)
at android.app.ActivityThread.main(ActivityThread.java:5752)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1291)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1107)
at dalvik.system.NativeStart.main(Native Method)
Do you have anything reproducible? Or something that indicates it actually is an issue with greenDAO?
I can't provide what you want since is a private project I just have the info you see above.
I cannot do anything with that info. Is there any "caused by" exception?
No, nothing related to my code, the exception only presented info inside greendao library.
This is weird. If your investigation reveals additional info please keep us updated. Without that, I'll have to close the ticket.
java.lang.NoClassDefFoundError: de.greenrobot.dao.internal.DaoConfig
at de.greenrobot.dao.AbstractDaoMaster.registerDaoClass(AbstractDaoMaster.java:44)
at com.virrantech.emptycan.dbmodel.DaoMaster.
above error i am getting when initialing my database with Green dao. please give solution
I have just updated my project's API from 14 to 15 and I started having this issue as well.
UPDATE 1: Yes, I can confirm now: I have changed back from API 15 to 14 and it's back working.
:-(
@leocarona Check if you have multidex enabled (disable it then). If you are using ProGuard, make sure your rules are correct (see the FAQ).
Otherwise, please provide us with a small example project so we can reproduce the issue. -ut