pilgr / Paper

Paper is a fast NoSQL-like storage for Java/Kotlin objects on Android with automatic schema migration support.
Apache License 2.0
2.35k stars 234 forks source link

PaperDb.init(getApplicationContext()) not called #112

Closed rahulabrol closed 5 years ago

rahulabrol commented 6 years ago

Caused by: io.paperdb.PaperDbException: Paper.init is not called as i have mentioned it in my application class...please help?

pilgr commented 6 years ago

Did you call Paper.init() prior using any other Paper's api?

rahulabrol commented 6 years ago

yes i am calling it from Application class's onCreate method

pilgr commented 6 years ago

Do you have some components running in a different android process? It's too little info to give you some advice.

On Jan 23, 2018 11:15, "Rahul Abrol" notifications@github.com wrote:

yes i am calling it from Application class's onCreate method

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/pilgr/Paper/issues/112#issuecomment-359727691, or mute the thread https://github.com/notifications/unsubscribe-auth/AAaNIVkzln4TeYxb-i_egHLnTisjz9M_ks5tNaMrgaJpZM4RpLll .

csk2905 commented 5 years ago

Please help io.paperdb.PaperDbException: Paper.init is not called

pilgr commented 5 years ago

Please make sure you call Paper.init() in UI thread in Application's onCreate method before using database.