已导入Spatialite数据库库,但init()错误

时间:2018-05-14 09:39:45

标签: android android-sqlite geospatial spatialite

我从here导入了Spatialite图书馆 而我只是尝试执行非常简单的查询,但是一旦我创建数据库对象,它就会因为给我这个错误而崩溃

 No implementation found for void jsqlite.Database.internal_init() (tried Java_jsqlite_Database_internal_1init and Java_jsqlite_Database_internal_1init__)

我已经厌倦了它的工作,我已经尝试了人们在this stackoverflow线程上提供的解决方案

这是我的完整错误日志

05-14 14:56:21.457 1421-1421/propelit.actionopps.com.propelit E/AndroidRuntime: FATAL EXCEPTION: main
Process: propelit.actionopps.com.propelit, PID: 1421
java.lang.UnsatisfiedLinkError: No implementation found for void jsqlite.Database.internal_init() (tried Java_jsqlite_Database_internal_1init and Java_jsqlite_Database_internal_1init__)
    at jsqlite.Database.internal_init(Native Method)
    at jsqlite.Database.<clinit>(Database.java:956)
    at propelit.actionopps.com.propelit.MainActivity.initializeMapsAndPositioning(MainActivity.java:157)
    at propelit.actionopps.com.propelit.MainActivity.onRequestPermissionsResult(MainActivity.java:811)
    at propelit.actionopps.com.propelit.MainActivity.checkPermissions(MainActivity.java:738)
    at propelit.actionopps.com.propelit.MainActivity.onCreate(MainActivity.java:129)
    at android.app.Activity.performCreate(Activity.java:6852)
    at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1119)
    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2658)
    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2766)
    at android.app.ActivityThread.-wrap12(ActivityThread.java)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1513)
    at android.os.Handler.dispatchMessage(Handler.java:102)
    at android.os.Looper.loop(Looper.java:163)
    at android.app.ActivityThread.main(ActivityThread.java:6210)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:901)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:791)

0 个答案:

没有答案