“net.zetetic:android-database-sqlcipher has reported android-database-sqlcipher:3.5.9 as outdated. You may not be able to release future versions of your app with this SDK version to production or open testing”
Additionally because you’re using a 3.x version of SQLCipher and the newest packages are 4.x, you’ll need to perform a one time database migration as outlined in this post: Upgrading to SQLCipher 4
I am having the same problem.
I went from android-database-sqlcipher 3.x to 4.x using SQLiteDatabaseHook Execute database.rawExecSQL(“PRAGMA cipher_migrate;”); in postKey; This is a successful upgrade.
But I see that the library has been migrated to sqlcipher-android I tried to go directly from android-database-sqlcipher 3.x to sqlcipher-android 4.x, and I found that there is no place to perform the upgrade operation PRAGMA cipher_migrate SQLiteDatabaseHook’s postKey method parameter changed from SQLiteDatabase to SQLiteConnection.
How can I perform this upgrade?
Pre & Post Key Operations
Coordinating operations that occur before and after the keying operation have changed slightly between the two API’s. Both libraries utilize an SQLiteDatabaseHook as a mechanism to inject operations into the pre and post-key operations. The type provided to the function for both preKey and postKey changed. android-database-sqlcipher would provide the instance of the SQLiteDatabase object, whereas sqlcipher-android provides the underlying SQLiteConnection object.
You’ll want to provide a SQLiteDatabaseHook instance when creating your database connection.