Activeandroid和SQLCipher的问题

时间:2016-01-13 11:01:33

标签: android sqlite activeandroid

您好我正在开发我想要进行数据库加密的android。我正在使用Active-Android for sqlite DB。我尝试使用ActiveAndroid-Secure main。正如这说我创建了编译jar。当我尝试包含并运行此项目时,我向我显示以下错误:

https://github.com/zsiegel/ActiveAndroid-Secure

在我的build.gradle文件中:

    Process: com.example.nileshkashid.secureactiveandroid, PID: 19057
java.lang.NoClassDefFoundError: com.activeandroid.DatabaseHelper
at java.lang.Class.classForName(Native Method)
at java.lang.Class.forName(Class.java:308)
at com.activeandroid.ModelInfo.scanForModelClasses(Unknown Source)
at com.activeandroid.ModelInfo.scanForModel(Unknown Source)
at com.activeandroid.ModelInfo.<init>(Unknown Source)
at com.activeandroid.Cache.initialize(Unknown Source)
at com.activeandroid.ActiveAndroid.initialize(Unknown Source)
at com.activeandroid.ActiveAndroid.initialize(Unknown Source)
at com.activeandroid.ActiveAndroid.initialize(Unknown Source)
at com.example.nileshkashid.secureactiveandroid.MainApplication.onCreate(MainApplication.java:16)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1024)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4953)
at android.app.ActivityThread.access$1500(ActivityThread.java:144)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1424)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:155)
at android.app.ActivityThread.main(ActivityThread.java:5702)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1029)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:824)

在我的应用程序类中:

    dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    testCompile 'junit:junit:4.12'
    compile 'com.android.support:appcompat-v7:23.1.1'
    compile 'com.android.support:support-v4:23.1.1'
    compile files('libs/ActiveAndroid.jar')
   /* compile files('libs/sqlcipher.jar')
    compile files('libs/android.jar')
    compile files('libs/commons-codec.jar')
    compile files('libs/guava-r09.jar')
    compile files('libs/native-libs-1.0.jar')*/

}

我有什么遗失的吗?需要一些帮助。谢谢。

0 个答案:

没有答案