使用 SQLCipher加密數據庫的錯誤總結(file is not a database: , while compiling: select count(*) from sqlite_master

使用經歷如下   由於項目中需要用到加密數據庫,使用特意用了github的經典項目 sqlcipher, 使用起來也很簡單,和原生的數據庫沒有差異,甚至連類名都一樣,只是包路徑需要替換爲Sqlcipher的相應路徑。還有獲取數據庫的方式需要加上密碼,如 SQLiteOpenHelper.getWritableDatabase(「secret」)。一開始接入也沒有想太多,就直接用了。沒想到,後來bu
相關文章
相關標籤/搜索