phonegap sqlite插件错误 [英] phonegap sqlite plugin error

查看:98
本文介绍了phonegap sqlite插件错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在phonegap项目中添加了brodysoft sqlite插件.当我尝试运行此项目时,出现以下错误:-

I have added brodysoft sqlite plugin in my phonegap project. when i try to run this project, i get following error:-

[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 

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

Not finding the way how to resolve this issue. Can anyone help me in this scenerio?

推荐答案

我已经与sqlitePlugin( https://github.com/litehelpers/Cordova-sqlite-storage ),他告诉我"解压缩sqlite-native-driver.jar并将子目录从lib复制到您的项目的libs目录."

I've got in contact with the author of sqlitePlugin (https://github.com/litehelpers/Cordova-sqlite-storage) and he told me "unzip sqlite-native-driver.jar and copy the subdirectories from lib to your project's libs directory."

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

So, I downloaded the zip file from that site (the link is at the top right), then extracted the two files in the folder (src/android/libs) and placed them in the project's libs directory. Then, I refreshed the project.

由于错误持续发生,他告诉我"确保您删除了sqlite-native-driver.jar ".我从libs目录中删除了该文件,刷新了项目,然后...该错误消失了.

As the error kept going, he told me to "Make sure you removed sqlite-native-driver.jar". I deleted that file from the libs directory, refreshed the project, and... the error dissapeared.

litehelpers/Cordova-sqlite-storage 作者的所有功劳.多亏他.

All the credits to the author of litehelpers/Cordova-sqlite-storage. Thanks to him.

这篇关于phonegap sqlite插件错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆