Android Room SQLite_ERROR no such table

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

    In my case, the cause of the problem was using the wrong table name. The table name I chose for my model class was different from the class name. I erroneously used the class name while querying my Data-Access-Object interface.

    @Query("SELECT * FROM tablename")
    

    Check your table name to make sure they match with the table name annotated into the model class.

    I hope this helps. Merry coding!

提交回复
热议问题