问题描述
我整合ormlite-4.9与sqlcipher-2.08。我GOOGLE了四周,但,我没有成功。我也看到了格雷先生的回答(如何使用ORMLite与SQLCipher一起在Android的?)关于整合。我试图通过他的答案。不过,我想这是较早版本的ORMLite和SQLCipher有不同的包比我这是从 http://sqlcipher.net下载了/ sqlcipher换机器人。
I'm integrating ormlite-4.9 with sqlcipher-2.08. I've googled around but, I didn't succeed.I also saw Mr. Gray's answer(How can I use ORMLite with SQLCipher together in Android?) about integration. I tried by his answer. However, I guess it was for older versions of ORMLite and SQLCipher which has different packages than mine which is downloaded from http://sqlcipher.net/sqlcipher-for-android.
有人可以解释我详细一点吗?
Can someone explain me a bit in detail?
推荐答案
我只是添加了相同的问题,而不是你。问题是,你必须修改 ormlite-的android.jar
code,使其与 SQLCipher
库。所以,你必须做的是:
I just add the same problem than you. The problem is that you have to change the ormlite-android.jar
code to make it work with the SQLCipher
lib. So what you have to do is :
- 下载
SQLCipher
最新版本的从网站在这里或直接 - 解压缩文件夹,然后将其复制到您的项目中。
- 添加的资产文件夹压缩到您的构建路径。
- 下载
ormlite核
code为4.46(你可以尝试更高,但我不保函,这是去工作),你可以做到这一点这里。 - 添加库到您的libs文件夹
- 在下载Git项目: https://github.com/d-tarasov/ormlite -Android-sqlcipher
- 复制源文件夹中的项目
- ormlite类的包装有所改变,令刚刚更正。
- Download the
SQLCipher
latest version from here or directly from the website - Unzip the folder then copy it in to your project.
- Add the zip in the assets folder to your build path.
- Download the
ormlite-core
code for 4.46 (you can try higher but i don't guarante that it is going to work), you can do it here. - Add the library to your libs folder
- Download this git project : https://github.com/d-tarasov/ormlite-android-sqlcipher
- Copy the source folder in your project
- The package of ormlite classes have changed so just correct it.
和它应该工作:)让我知道你有任何问题的!
And it should work :) Let me know i you have any problem with that !
这篇关于集成ormlite-4.9与sqlcipher-2.08的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!