Android Room SQLite_ERROR no such table

前端 未结 6 1001
旧巷少年郎
旧巷少年郎 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:32

    Another reason for this error could be the entity is not listed in the AppDatabase.java file:

        @Database(entities = {XEntity.class, YEntity.class, ZEntity.class}, 
    version = 1, exportSchema = true)
    

    Make sure you have the latest db file in the databases folder, and if you export your schema, make sure your .json schema file under app\schemas is being properly updated.

提交回复
热议问题