Build fails when using another dependency that uses Sqlcipher


#1

I’m using this library along with another in-house project, and this project requires Sqlcipher. So whenever I try to build I get the following error:

Execution failed for task ':app:transformNativeLibsWithMergeJniLibsForDebug'.
> More than one file was found with OS independent path 'lib/armeabi-v7a/libsqlcipher.so'

My initial guess is that both libraries are colliding because of the Sqlcipher files, because removing saferoom from the dependencies throws no errors. Is there a workaround for this?

Saferoom version: 0.3.2


#2

SafeRoom has SQLCipher for Android as a transitive dependency. So, if you have the SafeRoom dependency, you should not need to integrate SQLCipher for Android by other means. Gradle should be resolving any AAR dependency conflicts, though.