使用 SQLCipher加密数据库的错误总结(file is not a database: , while compiling: select count(*) from sqlite_master
使用经历如下 由于项目中需要用到加密数据库,使用特意用了github的经典项目 sqlcipher, 使用起来也很简单,和原生的数据库没有差异,甚至连类名都一样,只是包路径需要替换为Sqlcipher的相应路径。还有获取数据库的方式需要加上密码,如 SQLiteOpenHelper.getWritableDatabase(“secret”)。一开始接入也没有想太多,就直接用了。没想到,后来b...