greenrobot / greenDAO

greenDAO is a light & fast ORM solution for Android that maps objects to SQLite databases.
http://greenrobot.org/greendao/
12.63k stars 2.89k forks source link

net.zetetic:android-database-sqlcipher:3+ update 4+ DaoException #1116

Closed justindemo closed 5 months ago

justindemo commented 5 months ago

Hello ! I am encountering a compilation error when using GreenDAO 3.3.0 in an Android SDK 34 project with Java 11. When I use encrypted database, use net.zetetic:android-database-sqlcipher:3+, there is no problem, but when I use net.zetetic:android-database-sqlcipher:4+, DaoException will occur. when checkingEncryptedHelper. because net.zetetic:android-database-sqlcipher version 3.5.9 has been marked as outdated by its author and will block publishing of your app to Play Console , so is there a quick way to solve this problem?

greenrobot-team commented 5 months ago

Can you share more details about the exception? But this sounds like an API has changed. In that case you might have to write a custom database wrapper class to use the new APIs.

justindemo commented 5 months ago

After a period of inquiry, I found the answer, androidx Sqlite, implementation "androidx.sqlite:sqlite:2.2.0" was missing. It was my mistake to solve this problem, thank you,