在 android 中尝试实施 SQlcipher 时出错
Error when tring to implement SQlcipher in android
java.lang.UnsatisfiedLinkError:
dalvik.system.PathClassLoader[DexPathList[[zip file
"/data/app/com.example.sqlcipher_demo-1/base.apk"],nativeLibraryDirectories=[/vendor/lib,
/system/lib]]] couldn't find "libsqlcipher_android.so"
我收到这个错误。我在 libs 文件夹中添加了所有 jar 文件,能够在所有文件夹中看到 .so 文件。这些 jar 文件也添加到 build.gradle 文件中。
终于找到答案了....
如果您保持下面提到的项目结构,它将起作用
Image
我遵循了进一步的步骤
https://androidbycode.wordpress.com/2015/02/18/android-database-encryption-using-sqlcipher/
现在工作正常。
java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.example.sqlcipher_demo-1/base.apk"],nativeLibraryDirectories=[/vendor/lib, /system/lib]]] couldn't find "libsqlcipher_android.so"
我收到这个错误。我在 libs 文件夹中添加了所有 jar 文件,能够在所有文件夹中看到 .so 文件。这些 jar 文件也添加到 build.gradle 文件中。
终于找到答案了....
如果您保持下面提到的项目结构,它将起作用
Image
我遵循了进一步的步骤
https://androidbycode.wordpress.com/2015/02/18/android-database-encryption-using-sqlcipher/
现在工作正常。