不合适的链接错误,而使用SQLCipher库 [英] Unsatisfied Link error while using SQLCipher library
本文介绍了不合适的链接错误,而使用SQLCipher库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我现在用的是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文件添加到库/ armaebi Eclipse项目中的文件夹,然后重建。
you need to add the .so files into the libs/armaebi folder of your eclipse project and rebuild.
这篇关于不合适的链接错误,而使用SQLCipher库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文