不合适的链接错误,而使用SQLCipher库不合适、错误、链接、SQLCipher

2023-09-14 00:00:42 作者:这嗰丫头°吥太乖

我现在用的是SQLCipher库Android的加密/解密数据库文件。我下面说是在API中所讨论的具体步骤添加库。

I am using the SQLCipher Library for Android to Encrypt/Decrypt the DB file. I am following the exact steps that were discussed in the API to add the library.

不过,我得到一个不合适的链接错误,当我运行项目......这里的logcat的......

But I am getting a Unsatisfied link error when i run the project... Here's the logcat...

11-15 13:12:08.482: ERROR/AndroidRuntime(340): java.lang.UnsatisfiedLinkError: dbopen
11-15 13:12:08.482: ERROR/AndroidRuntime(340):     at info.guardianproject.database.sqlcipher.SQLiteDatabase.dbopen(Native Method)
11-15 13:12:08.482: ERROR/AndroidRuntime(340):     at info.guardianproject.database.sqlcipher.SQLiteDatabase.<init>(SQLiteDatabase.java:1876)
11-15 13:12:08.482: ERROR/AndroidRuntime(340):     at info.guardianproject.database.sqlcipher.SQLiteDatabase.openDatabase(SQLiteDatabase.java:870)
11-15 13:12:08.482: ERROR/AndroidRuntime(340):     at info.guardianproject.database.sqlcipher.SQLiteDatabase.openOrCreateDatabase(SQLiteDatabase.java:904)
11-15 13:12:08.482: ERROR/AndroidRuntime(340):     at info.guardianproject.database.sqlcipher.SQLiteOpenHelper.getWritableDatabase(SQLiteOpenHelper.java:107)
11-15 13:12:08.482: ERROR/AndroidRuntime(340):     at com.myproject1.getInstance(AppData.java:60)

请给我任何参考或暗示。

Please give me any reference or hint.

推荐答案

您需要的.so文件添加到库/ armae​​bi Eclipse项目中的文件夹,然后重建。

you need to add the .so files into the libs/armaebi folder of your eclipse project and rebuild.