Generate release apk


#1

Hello,

I’m generating apk release version with sqlcipher community edition.

The application it gives me a error:

Caused by: java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file “/data/app/my-packet/base.apk”],nativeLibraryDirectories=[/data/app/my-packet/lib/arm64, /data/app/my-packet/base.apk!/lib/arm64-v8a, /vendor/lib64, /system/lib64]]] couldn’t find “libsqlcipher.so

Thanks


#2

Hey Luis,

Are you integrating SQLCipher for Android using gradle by following the steps at the top of this page?

https://www.zetetic.net/sqlcipher/sqlcipher-for-android/

If you’re building SQLCipher for Android yourself, it may be helpful to review the build documentation on the GitHub page located here: https://github.com/sqlcipher/android-database-sqlcipher/#building

If you have other dependencies, I’d recommend trying to create a test project using just the SQLCipher dependency and then attempt to build that, if it succeeds add in your dependencies 1 by 1 to see what could be causing the problem.

Cheers,
Micah


#3

Hey mmore,

I’m use the community edition. I have put the dependency in my file gradle. I followed the steps for this page:

https://www.zetetic.net/sqlcipher/sqlcipher-for-android/

compile 'net.zetetic:android-database-sqlcipher:3.5.7@aar'

I build apk in debug mode and work fine. When I build signed apk, it doesn’t work i get an error when I run on android 6:

Caused by: java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file “/data/app/my-packet/base.apk”],nativeLibraryDirectories=[/data/app/my-packet/lib/arm64, /data/app/my-packet/base.apk!/lib/arm64-v8a, /vendor/lib64, /system/lib64]]] couldn’t find “libsqlcipher.so

Thanks mmore.

Cheers.


#4

Hey Micah,

I use SQLCipher community edition. I following steps to integration SQLCipher with android for this page:

https://www.zetetic.net/sqlcipher/sqlcipher-for-android/

I have on my file gradle this dependencies:

compile 'net.zetetic:android-database-sqlcipher:3.5.7@aar'

When I build apk in debug mode it works fine. When I build signed apk it doesn’t work when run on Android 6.

Thanks Micah,

Cheers.
Luis,


#6

Hey Micah,

I use SQLCipher community edition. I following steps to integration SQLCipher with android for this page:

https://www.zetetic.net/sqlcipher/sqlcipher-for-android/

I have on my file gradle this dependencies:

compile 'net.zetetic:android-database-sqlcipher:3.5.7@aar'

When I build apk in debug mode it works fine. When I build signed apk it doesn’t work when run on Android 6.

Thanks Micah,

Cheers.
Luis,


#7

Hi @Luis

SQLCipher for Android includes both arm64-v8a, and x86_64 for 64-bit ABI’s. It appears your application is not properly bundling the AAR reference. You might consider using apktool to verify the contents of your generated application binary (i.e., what native platforms are being included). Are you using ProGuard? If so, you might disable that to see if your configuration file is the source of the problem. Finally, as @mmoore mentioned, you might also review any other third-party dependencies to see if they are introducing a conflict.