gpt4 book ai didi

android - 使用 sql 密码时我的应用程序崩溃

转载 作者:搜寻专家 更新时间:2023-11-01 08:10:52 27 4
gpt4 key购买 nike

我在我的应用程序中使用了 sql 密码(sql cipher for android),它适用于 android 平板电脑以及高于 android 2.3 的版本。但它在 android 2.2 版本中崩溃。有人知道这个问题吗,如果是,请给我一个解决方案。我已经包含了崩溃日志

03-24 05:04:26.440: E/AndroidRuntime(15069): FATAL EXCEPTION: main 03-24 05:04:26.440: E/AndroidRuntime(15069): info.guardianproject.database.sqlcipher.SQLiteException: not an error 03-24 05:04:26.440: E/AndroidRuntime(15069): at info.guardianproject.database.sqlcipher.SQLiteDatabase.dbopen(Native Method) 03-24 05:04:26.440: E/AndroidRuntime(15069): at info.guardianproject.database.sqlcipher.SQLiteDatabase.(SQLiteDatabase.java:1870) 03-24 05:04:26.440: E/AndroidRuntime(15069): at info.guardianproject.database.sqlcipher.SQLiteDatabase.openDatabase(SQLiteDatabase.java:863) 03-24 05:04:26.440: E/AndroidRuntime(15069): at info.guardianproject.database.sqlcipher.SQLiteOpenHelper.getReadableDatabase(SQLiteOpenHelper.java:183) 03-24 05:04:26.440: E/AndroidRuntime(15069): at android.view.View.performClick(View.java:2408) 03-24 05:04:26.440: E/AndroidRuntime(15069): at android.view.View$PerformClick.run(View.java:8818) 03-24 05:04:26.440: E/AndroidRuntime(15069): at android.os.Handler.handleCallback(Handler.java:587) 03-24 05:04:26.440: E/AndroidRuntime(15069): at android.os.Handler.dispatchMessage(Handler.java:92) 03-24 05:04:26.440: E/AndroidRuntime(15069): at android.os.Looper.loop(Looper.java:123) 03-24 05:04:26.440: E/AndroidRuntime(15069): at android.app.ActivityThread.main(ActivityThread.java:4627) 03-24 05:04:26.440: E/AndroidRuntime(15069): at java.lang.reflect.Method.invokeNative(Native Method) 03-24 05:04:26.440: E/AndroidRuntime(15069): at java.lang.reflect.Method.invoke(Method.java:521) 03-24 05:04:26.440: E/AndroidRuntime(15069): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:871) 03-24 05:04:26.440: E/AndroidRuntime(15069): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:629) 03-24 05:04:26.440: E/AndroidRuntime(15069): at dalvik.system.NativeStart.main(Native Method)

最佳答案

SQLCipher for Android depends on localization data from the ICU project. On Android platform version 2.3 and above SQLCipher for Android will attempt to use system provided ICU localization data. If you are attempting to use SQLCipher for Android on a supported platform below 2.3, the assets/icudt44l.zip needs to be included in your application as a dependency.

来自 https://github.com/sqlcipher/android-database-sqlcipher/issues/30

您可以直接在 https://github.com/sqlcipher/android-database-sqlcipher/raw/master/assets/icudt46l.zip 获取该 zip 文件如果您的 SQLCipher 安装中没有它

关于android - 使用 sql 密码时我的应用程序崩溃,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9781686/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com