Sqlcipher error with "not error" stacktrace error

I am trying to use sqlcipher (2.0.8) in my project for API 16 (Motorola Xoom 4.1.2) and get the next stack. I have 3 such libraries in the armeabi folder in libs and icudt46l.zip in the resources folder. I have SQLiteDatabase.loadLibs(context); in onCreate my activity. However, when the application crashes, I create a database.

 11-08 21:00:33.050: E/AndroidRuntime(2222): FATAL EXCEPTION: Main: 11-08 21:00:33.050: E/AndroidRuntime(2222): net.sqlcipher.database.SQLiteException: not an error 11-08 21:00:33.050: E/AndroidRuntime(2222): at net.sqlcipher.database.SQLiteDatabase.dbopen(Native Method) 11-08 21:00:33.050: E/AndroidRuntime(2222): at net.sqlcipher.database.SQLiteDatabase.<init>(SQLiteDatabase.java:1952) 11-08 21:00:33.050: E/AndroidRuntime(2222): at net.sqlcipher.database.SQLiteDatabase.openDatabase(SQLiteDatabase.java:902) 11-08 21:00:33.050: E/AndroidRuntime(2222): at net.sqlcipher.database.SQLiteDatabase.openOrCreateDatabase(SQLiteDatabase.java:945) 11-08 21:00:33.050: E/AndroidRuntime(2222): at net.sqlcipher.database.SQLiteOpenHelper.getWritableDatabase(SQLiteOpenHelper.java:107) 
+4
source share
2 answers

The reason is because I have icudt46l.zip in the library project resources folder. I need to copy icudt46l.zip to the application project asset folder. More on this https://github.com/sqlcipher/android-database-sqlcipher/issues/64

+13
source

Try disabling your application and installing it again. In my case, eclipse is facing some problems to add a new asset file.

0
source

Source: https://habr.com/ru/post/1444990/


All Articles