设备中的Ionic2 SqlStorage问题无法找到“libsqlc-native-driver.so”

时间:2016-11-15 13:07:02

标签: android ionic2

我已经在我的ionic2应用程序中实现了SqlStorage,它运行正常。我昨天在表中添加了一个列,所以我首先创建了一个drop table,然后创建了表,但是当我将应用程序部署到设备时,我在ddms中看到了以下错误。

11-14 17:47:33.332: E/chromium(32126): [ERROR:layer_tree_host_impl.cc(2206)] Forcing zero-copy tile initialization as worker context is missing
11-14 17:47:35.954: E/chromium(32126): [ERROR:xwalk_autofill_client.cc(121)] Not implemented reached in virtual void xwalk::XWalkAutofillClient::OnFirstUserGestureObserved()
11-14 17:47:36.064: E/chromium(32126): [ERROR:xwalk_autofill_client.cc(121)] Not implemented reached in virtual void xwalk::XWalkAutofillClient::OnFirstUserGestureObserved()
11-14 17:47:36.555: E/AndroidRuntime(32126): FATAL EXCEPTION: pool-2-thread-1
11-14 17:47:36.555: E/AndroidRuntime(32126): Process: com.ionicframework.coopiapp955107, PID: 32126
11-14 17:47:36.555: E/AndroidRuntime(32126): java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.ionicframework.coopiapp955107-1/base.apk"],nativeLibraryDirectories=[/data/app/com.ionicframework.coopiapp955107-1/lib/arm, /vendor/lib, /system/lib]]] couldn't find "libsqlc-native-driver.so"
11-14 17:47:36.555: E/AndroidRuntime(32126):    at java.lang.Runtime.loadLibrary(Runtime.java:367)
11-14 17:47:36.555: E/AndroidRuntime(32126):    at java.lang.System.loadLibrary(System.java:988)
11-14 17:47:36.555: E/AndroidRuntime(32126):    at io.liteglue.SQLiteConnector.<init>(SQLiteConnector.java:8)
11-14 17:47:36.555: E/AndroidRuntime(32126):    at io.sqlc.SQLiteConnectorDatabase.<clinit>(SQLiteConnectorDatabase.java:36)
11-14 17:47:36.555: E/AndroidRuntime(32126):    at io.sqlc.SQLitePlugin.openDatabase(SQLitePlugin.java:211)
11-14 17:47:36.555: E/AndroidRuntime(32126):    at io.sqlc.SQLitePlugin.access$000(SQLitePlugin.java:32)
11-14 17:47:36.555: E/AndroidRuntime(32126):    at io.sqlc.SQLitePlugin$DBRunner.run(SQLitePlugin.java:327)
11-14 17:47:36.555: E/AndroidRuntime(32126):    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
11-14 17:47:36.555: E/AndroidRuntime(32126):    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
11-14 17:47:36.555: E/AndroidRuntime(32126):    at java.lang.Thread.run(Thread.java:818)
11-14 17:47:38.807: E/chromium(32126): [ERROR:runtime_javascript_dialog_manager.cc(70)] Not implemented reached in virtual void xwalk::RuntimeJavaScriptDialogManager::ResetDialogState(content::WebContents*)

1 个答案:

答案 0 :(得分:0)

问题解决了卸载cordova插件并从存储库再次安装(justo以获取最新版本)。

我遵循的步骤如下:

1)在管理员模式下打开cmd。

2)转到项目根文件夹。

3)执行命令cordova插件列表。这将列出安装的所有插件。请注意sqlite-storage,您将需要在以下步骤中使用该名称。

4)执行cordova插件删除[pluginName](&#34; cordova-sqlite-storage&#34;在我的情况下)

5)使用以下命令再次安装插件: cordova插件添加https://github.com/litehelpers/Cordova-sqlite-storage