phonegap sqlite插件错误

时间:2015-07-16 10:37:47

标签: sqlite cordova

我在phonegap项目中添加了brodysoft sqlite插件。当我尝试运行这个项目时,我得到以下错误: -

[2015-07-16 13:36:24 - HelloWorld] The library 'sqlite-native-driver.jar' contains native libraries that will not run on the device.
[2015-07-16 13:36:24 - HelloWorld] Additionally some of those libraries will interfer with the installation of the application because of their location in lib/
[2015-07-16 13:36:24 - HelloWorld] lib/ is reserved for NDK libraries.
[2015-07-16 13:36:24 - HelloWorld] The following libraries were found:
[2015-07-16 13:36:24 - HelloWorld]  - lib/arm64-v8a/libsqlc-native-driver.so
[2015-07-16 13:36:24 - HelloWorld]  - lib/armeabi/libsqlc-native-driver.so
[2015-07-16 13:36:24 - HelloWorld]  - lib/armeabi-v7a/libsqlc-native-driver.so
[2015-07-16 13:36:24 - HelloWorld]  - lib/x86/libsqlc-native-driver.so
[2015-07-16 13:36:24 - HelloWorld]  - lib/x86_64/libsqlc-native-driver.so 

找不到解决此问题的方法。在这个场景中有谁能帮助我?

1 个答案:

答案 0 :(得分:4)

我已经与sqlitePlugin(https://github.com/litehelpers/Cordova-sqlite-storage)的作者联系了,他告诉我“ unzip sqlite-native-driver.jar并将子目录从lib复制到项目的libs目录。” / EM>“

所以,我从该站点下载了zip文件(链接在右上角),然后解压缩文件夹(src / android / libs)中的两个文件并将它们放在项目的libs目录中。然后,我刷新了这个项目。

随着错误的继续,他告诉我“确保你删除了sqlite-native-driver.jar ”。我从libs目录中删除了该文件,刷新了项目,并且......错误消失了。

litehelpers / Cordova-sqlite-storage 的作者的所有信用。谢谢他。