I saw this error when trying to use sqlcipher in my project. I looked it up and found several people resolved it by adding SQLiteDatabase.loadLibs(); However, it says it's expecting an @NotNull Context context and I wasn't sure what it means. Has anyone resolved this issue? This and this are two of the sources I used.
The dependency in my gradle.build is compile 'net.zetetic:android-database-sqlcipher:3.3.1-1@aar' and since I have this, it means I don't have to manually move any files to my libs directory, right?
@Override
public void onCreate(SQLiteDatabase db) {
SQLiteDatabase.loadLibs();
db.execSQL(CREATE_SCRIPT);
}
Apologies in advance if these are basic questions.