We try to update sqlite_sequence with the following code.
sqlite_sequence
WeNoteRoomDatabase weNoteRoomDatabase = WeNoteRoomDatabase.instance(); weNoteRoomDatab
Table sql_sequence is not managed by Room, so you need to edit it using a SupportSQLiteDatabase.
sql_sequence
SupportSQLiteDatabase
Try this:
String sqlQuery = "DELETE FROM sqlite_sequence WHERE name='attachment'"; weNoteRoomDatabase().getOpenHelper().getWritableDatabase().execSQL(sqlQuery);