greenrobot / greenDAO

greenDAO is a light & fast ORM solution for Android that maps objects to SQLite databases.
http://greenrobot.org/greendao/
12.63k stars 2.89k forks source link

Can I use greenDao in multiple libraries? ------ Look forward to your reply #1104

Closed jingqingqingxinye closed 2 years ago

jingqingqingxinye commented 2 years ago

Hi,greenDao-team, I had encountered a problem that is "android.database.sqlite.SQLiteException: no such table", when use greenDao in multiple libraries . Are all Entity classes in the same library? Look forward to your reply, thanks!

greenrobot-team commented 2 years ago

All entity classes must be in the same module as the greenDAO dependency. E.g. you have to create a separate database (with a different name) for each module.