我开发了一个使用Sqlite插件的Cordova项目,它按预期工作
但由于某些原因,我在android studio中导入了这篇文章
http://www.catharinegeek.com/embed-cordova-webview-in-android-native-app/
您可以在下面查看项目结构了解详情
当我运行项目时出现此错误
"java.lang.UnsatisfiedLinkError: Couldn't load sqlc-native-driver from loader dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.cyan.amir.calendarplusevent-1.apk"],nativeLibraryDirectories=[/data/app-lib/com.cyan.amir.calendarplusevent-1, /system/lib, /system/lib/arm, /data/downloads]]]: findLibrary returned null"
at java.lang.Runtime.loadLibrary(Runtime.java:358)
at java.lang.System.loadLibrary(System.java:526)
at io.liteglue.SQLiteConnector.<init>(SQLiteConnector.java:8)
at io.sqlc.SQLiteConnectorDatabase.<clinit>(SQLiteConnectorDatabase.java:36)
at io.sqlc.SQLitePlugin.openDatabase(SQLitePlugin.java:227)
at io.sqlc.SQLitePlugin.access$000(SQLitePlugin.java:35)
at io.sqlc.SQLitePlugin$DBRunner.run(SQLitePlugin.java:398)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at java.lang.Thread.run(Thread.java:841)
我dubug,我在这一行找到了代码中断:
this.cordova.getThreadPool().execute(r);
SQLitePlugin.java文件的
我使用visual studio 2015测试Cordova项目并且工作正常
如何在android studio中使用添加到cordova的sqlite插件?