Relative Content

Tag Archive for javaandroidsqliteandroid-room

Cannot run invalidation tracker. Is the db closed? Android Room ORM

I am using a Room database. I start the database in onCreate and close it in onDestroy. However, when I enter the activity for the second time, I encounter the following error.
As can be seen in the log, after starting Room, I check with the log and I get a false response saying “isOpen”, and there is also a callback in the database. Here, when it is open, it says open. I don’t understand whether it is related to a delay or whether the isOpen() method is running. but after all this it gives me the error in the title