Skip to content
Advertisement

Problems with SQLiteException: no such table

I have a database with two tables and every time I try to add a new item to the second table it says that there is no such table. Please help.

DatabaseHelper:

The add method from DatabaseHelper:

The place where the new item creation is:

Advertisement

Answer

you may have changed the schema and did not increase the db version so you may have two options:

  • increase the db version
  • or if you did not publish previous version of your app uninstall app from emulator then run project
User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement