Android Room SQLite_ERROR no such table

前端 未结 6 1181
旧巷少年郎
旧巷少年郎 2021-02-04 23:35

I\'m trying my hand at using Android Room and after following this tutorial I\'m getting the following error when i try to build the app:

Error:(23, 27) error: The

6条回答
  •  没有蜡笔的小新
    2021-02-05 00:36

    Room names tables the same as their associated entities. In your DAO, TABLE_ITEMS needs to be PermitItem, because your entity is PermitItem. Or, add the tableName property to the @Entity annotation, to tell Room some other name to use for the table.

提交回复
热议问题