Caused by: android.database.sqlite.SQLiteException: no such table: (code 1) Android

后端 未结 16 2357
一整个雨季
一整个雨季 2020-12-15 05:01

We have a sqlite database in our Application. Its working fine for all the users but few of them experiencing the Caused by: android.database.sqlite.SQLiteException: n

16条回答
  •  天命终不由人
    2020-12-15 05:34

    This error Occurs Because you are not using DATABASE_VERSION

    public class DatabaseHelper extends SQLiteOpenHelper {
        private static SQLiteDatabase sqliteDb;
    
        private static DatabaseHelper instance;
    
        private static final int DATABASE_VERSION = 1;
    

    Increase Your version every time you make changes in your database just increase DATABASE_VERSION with +1..

提交回复
热议问题