Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2 files found with path 'lib/arm64-v8a/libsqlcipher.so' #467

Closed
priyank-huma opened this issue May 18, 2023 · 4 comments
Closed

2 files found with path 'lib/arm64-v8a/libsqlcipher.so' #467

priyank-huma opened this issue May 18, 2023 · 4 comments
Labels
needs-details Needs additional details to proceed.

Comments

@priyank-huma
Copy link

Error:

2 files found with path 'lib/arm64-v8a/libsqlcipher.so' from inputs:
 - /Users/priyank/.gradle/caches/transforms-3/d0db61ef2d39c78a32a9106267aa6d01/transformed/android-database-sqlcipher-4.5.3/jni/arm64-v8a/libsqlcipher.so
 - /Users/priyank/.gradle/caches/transforms-3/438ade97106fd0d78572fef283fee359/transformed/sqlcipher-android-4.5.2/jni/arm64-v8a/libsqlcipher.so
If you are using jniLibs and CMake IMPORTED targets, see
https://developer.android.com/r/tools/jniLibs-vs-imported-targets

Library SQLCipher version: net.zetetic:sqlcipher-android:4.5.2
Project SQLCipher version: net.zetetic:android-database-sqlcipher:4.5.1

@developernotes
Copy link
Member

Hi @priyank-huma,

Can you please provide more information regarding your report?

@developernotes developernotes added the needs-details Needs additional details to proceed. label May 18, 2023
@priyank-huma
Copy link
Author

@developernotes
We are currently utilizing the net.zetetic:android-database-sqlcipher:4.5.1 dependencies in our project. However, we have encountered an issue due to a conflict with another third-party library that relies on net.zetetic:sqlcipher-android:4.5.2 dependencies. The problem arises from both libraries generating the lib/arm64-v8a/libsqlcipher.so file in different locations, causing conflicts within our project.

@developernotes
Copy link
Member

Hi @priyank-huma,

We advise against linking multiple versions of SQLCipher within an application due to the potential for database corruption given certain usage scenarios. You will want to adjust your dependencies so you are only using either net.zetetic:android-database-sqlcipher which is the legacy edition of the library, or migrate to net.zetetic:sqlcipher-android, the latest version of SQLCipher for Android.

@priyank-huma
Copy link
Author

Thank you so much for your guidance, @developernotes. I deeply appreciate the invaluable insights and assistance you have provided.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-details Needs additional details to proceed.
Projects
None yet
Development

No branches or pull requests

2 participants