I tried integrating SQLCipher in my Android Application, using this link and also some stack-overflow links(but they are out-dated and differs from official document).
All the steps are correctly followed, and there is no error in the coding part. But at last, when I build the project, the error message I get is :
Error:(11, 0) Gradle DSL method not found: 'defaultConfig()' Possible causes:
Can anyone please help me to get rid of this error.
add this to your build.gradle of your app and it should work out of the box:
In your code, you should load the 'native libraries' as this 'aar' file contains a few of them.
NOTE that you should use the
net.sqlcipher.database.SQLiteDatabase
instead ofandroid.database.sqlite.SQLiteDatabase
, just like a couple of other SQLite classes.