用了ormlite和wcdb,把https://github.com/Andoctorey/ormlite-sqlcipher 改到wcdb,然后开启事务调用dao的delete就报错了,原来没问题的
Caused by: com.tencent.wcdb.database.SQLiteReadOnlyDatabaseException: attempt to write a readonly database (code 1032, errno 0): at com.tencent.wcdb.database.SQLiteConnection.nativeExecuteForChangedRowCount(Native Method) at com.tencent.wcdb.database.SQLiteConnection.executeForChangedRowCount(SQLiteConnection.java:780) at com.tencent.wcdb.database.SQLiteSession.executeForChangedRowCount(SQLiteSession.java:706) at com.tencent.wcdb.database.SQLiteStatement.executeUpdateDelete(SQLiteStatement.java:62) at com.tencent.wcdb.database.SQLiteDatabase.executeSql(SQLiteDatabase.java:1883) at com.tencent.wcdb.database.SQLiteDatabase.execSQL(SQLiteDatabase.java:1862) at com.j256.ormlite.android.AndroidCipherCompiledStatement.execSql(AndroidCipherCompiledStatement.java:214) at com.j256.ormlite.android.AndroidCipherCompiledStatement.runUpdate(AndroidCipherCompiledStatement.java:86) at com.j256.ormlite.stmt.StatementExecutor.delete(StatementExecutor.java:582) at com.j256.ormlite.dao.BaseDaoImpl.delete(BaseDaoImpl.java:531) at com.j256.ormlite.stmt.DeleteBuilder.delete(DeleteBuilder.java:40)