Database table doesn't exist according to android studio compiler

前端 未结 1 483
孤独总比滥情好
孤独总比滥情好 2020-12-07 03:27

I\'m receiving this error:

android.database.sqlite.SQLiteException: no such table: setting (code 1): , while compiling: SELECT * FROM setting

相关标签:
1条回答
  • 2020-12-07 04:07

    You have changed the database structure while app is already installed but onCreate will only be executed once so you have two option to make your changes reflect into database

    1.) Increment the database version by one to execute onUpgrade to apply changes into existing database

    2.) Manually uninstall the app from your phone to execute onCreate

    0 讨论(0)
提交回复
热议问题