skip to Main Content

Android Studio – Pre-packaged database has an invalid schema in Room Android kotlin

Hello, I am trying to get data from the asset folder SQL DB but it showing this error. java.lang.IllegalStateException: Pre-packaged database has an invalid schema: recipetype(com.example.finddishrecipe.room.RecipeEntity). Expected: TableInfo{name='recipetype', columns={name=Column{name='name', type='TEXT', affinity='2', notNull=true, primaryKeyPosition=0, defaultValue='undefined'}, image=Column{name='image', type='TEXT', affinity='2', notNull=true, primaryKeyPosition=0, defaultValue='undefined'},…

VIEW QUESTION
Back To Top
Search