用sqlcipher加密SQLite

报这个异常:

No implementation found for native Lnet/sqlcipher/database/SQLiteDatabase;.dbopen (Ljava/lang/String;I)V #58



是因为在application中没有初始化这行代码:SQLiteDatabase.loadLibs(getApplicationContext());


还有个平时的异常 

private String s;

s.equals(“1”);  这时候会抛异常

必须要给private String s = "";  赋值才行


用法可参考点击打开链接


猜你喜欢

转载自blog.csdn.net/pengyu1801/article/details/79052815