錯誤日志:
android.database.sqlite.SQLiteException: no such table: FEED_LOAD_TIMES_ENTITY (code 1): ,
while compiling: INSERT INTO "FEED_LOAD_TIMES_ENTITY" ("_id","LOAD_TIMES") VALUES (?,?)
at android.database.sqlite.SQLiteConnection.nativePrepareStatement(Native Method)
at android.database.sqlite.SQLiteConnection.acquirePreparedStatement(SQLiteConnection.java:889)
at android.database.sqlite.SQLiteConnection.prepare(SQLiteConnection.java:500)
at android.database.sqlite.SQLiteSession.prepare(SQLiteSession.java:588)
at android.database.sqlite.SQLiteProgram.<init>(SQLiteProgram.java:58)
at android.database.sqlite.SQLiteStatement.<init>(SQLiteStatement.java:31)
at android.database.sqlite.SQLiteDatabase.compileStatement(SQLiteDatabase.java:994)
at org.greenrobot.greendao.database.StandardDatabase.compileStatement(StandardDatabase.java:67)
at org.greenrobot.greendao.internal.TableStatements.getInsertStatement(TableStatements.java:52)
at org.greenrobot.greendao.AbstractDao.insert(AbstractDao.java:319)
發(fā)生環(huán)境:
1.線上app有兩張表A言津、B顿锰,數(shù)據(jù)庫版本為3呛哟;
2.當(dāng)前開發(fā)版本新增了一個表C,升級數(shù)據(jù)庫版本為4盹沈;
3.只安裝當(dāng)前開發(fā)版本,沒有任何問題吃谣;
4.從線上版本升級到開發(fā)版本乞封,報(bào)上面那個錯誤做裙,找不到表C。