# Problems with migrate to sqlcipher-android

**URL:** <https://discuss.zetetic.net/t/problems-with-migrate-to-sqlcipher-android/7046>\
**Category:** SQLCipher\
**Created:** [August 11, 2025, 11:57am UTC](https://discuss.zetetic.net/t/problems-with-migrate-to-sqlcipher-android/7046 "2025-08-11T11:57:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kamil.krusiec](https://avatars.discourse-cdn.com/v4/letter/k/e56c9b/32.png) [@kamil.krusiec](https://discuss.zetetic.net/u/kamil.krusiec)\
**Post date:** [August 11, 2025, 11:57am UTC](https://discuss.zetetic.net/t/problems-with-migrate-to-sqlcipher-android/7046/1 "2025-08-11T11:57:29Z")

</div>

Hello. I have problem with migrate my project to sqlcipher-android.  
I changed this:  
implementation ‘net.zetetic:android-database-sqlcipher:4.5.4@aar’  
SQLiteDatabase.loadLibs(this);  
to this:  
implementation ‘net.zetetic:sqlcipher-android:4.10.0@aar’  
System.loadLibrary(“sqlcipher”);

and all old imports to new ones from new dependency. But when I run my application, it crash on starts with error:  
java.lang.NoClassDefFoundError: Failed resolution of: Lnet/sqlcipher/database/SQLiteOpenHelper;  
Caused by: java.lang.ClassNotFoundException: Didn’t find class “net.sqlcipher.database.SQLiteOpenHelper” on path: DexPathList

It looks like it search the old one class from old dependency, but I dont know why because I deleted everything old. Please help me with this

---

<div class="post-metadata">

**Author:** ![developernotes](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.zetetic.net/developernotes/32/1309_2.png) [@developernotes](https://discuss.zetetic.net/u/developernotes)\
**Post date:** [August 11, 2025, 2:19pm UTC](https://discuss.zetetic.net/t/problems-with-migrate-to-sqlcipher-android/7046/2 "2025-08-11T14:19:13Z")

</div>

Hi @kamil.krusiec,

You will need to change your imports when you migrate to `sqlcipher-android`. The `SQLiteOpenHelper` is located in `net.zetetic.database.sqlcipher`. We have a migration guide available here\[1\].

* * *

1. 

> **[SQLCipher for Android Migration - How to Convert Applications from...](https://www.zetetic.net/sqlcipher/sqlcipher-for-android-migration/)**

---

<div class="post-metadata">

**Author:** ![kamil.krusiec](https://avatars.discourse-cdn.com/v4/letter/k/e56c9b/32.png) [@kamil.krusiec](https://discuss.zetetic.net/u/kamil.krusiec)\
**Post date:** [August 12, 2025, 8:18am UTC](https://discuss.zetetic.net/t/problems-with-migrate-to-sqlcipher-android/7046/3 "2025-08-12T08:18:03Z")

</div>

As I wrote, I followed these instructions and replaced all imports with the new ones. I don’t have any imports from the old library anywhere in the entire project, yet I still get this error when launching the application.

---

<div class="post-metadata">

**Author:** ![developernotes](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.zetetic.net/developernotes/32/1309_2.png) [@developernotes](https://discuss.zetetic.net/u/developernotes)\
**Post date:** [August 12, 2025, 1:15pm UTC](https://discuss.zetetic.net/t/problems-with-migrate-to-sqlcipher-android/7046/4 "2025-08-12T13:15:44Z")

</div>

Hi @kamil.krusiec,

You may need to review your dependencies to see if you have a transitive dependency on `android-database-sqlcipher` as something within your project appears to still be referencing `android-database-sqlcipher`. `sqlcipher-android` does not depend on `android-database-sqlcipher`.
