Here is my code
class BookmarkViewModel(app: Application) : AndroidViewModel(app) { private val dao = BookmarkDb.get(app).bookmarkDao() companion o
In my case, I had forgotten to annotate my DatabaseClass class with
@Database(entities = [Book::class], version = 1) abstract class BookRoomDatabase: RoomDatabase()