有人能解决此错误吗?
java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/ph.com.partnersolutions.testjdbc-2/base.apk", zip file "/data/app/ph.com.partnersolutions.testjdbc-2/split_lib_dependencies_apk.apk", zip file "/data/app/ph.com.partnersolutions.testjdbc-2/split_lib_slice_0_apk.apk", zip file "/data/app/ph.com.partnersolutions.testjdbc-2/split_lib_slice_1_apk.apk", zip file "/data/app/ph.com.partnersolutions.testjdbc-2/split_lib_slice_2_apk.apk", zip file "/data/app/ph.com.partnersolutions.testjdbc-2/split_lib_slice_3_apk.apk", zip file "/data/app/ph.com.partnersolutions.testjdbc-2/split_lib_slice_4_apk.apk", zip file "/data/app/ph.com.partnersolutions.testjdbc-2/split_lib_slice_5_apk.apk", zip file "/data/app/ph.com.partnersolutions.testjdbc-2/split_lib_slice_6_apk.apk", zip file "/data/app/ph.com.partnersolutions.testjdbc-2/split_lib_slice_7_apk.apk", zip file "/data/app/ph.com.partnersolutions.testjdbc-2/split_lib_slice_8_apk.apk", zip file "/data/app/ph.com.partnersolutions.testjdbc-2/split_lib_slice_9_apk.apk"],nativeLibraryDirectories=[/data/app/ph.com.partnersolutions.testjdbc-2/lib/x86, /system/lib, /vendor/lib]]] couldn't find "libsqlitejdbc.so"
当我尝试连接到我的SQlite数据库时发生。
try{
String DB_PATH = "/data/data/" + getApplicationContext().getPackageName() + "/databases/";
String db = "jdbc:sqlite:" + DB_PATH;
Class.forName("org.sqlite.JDBC");
Connection c = DriverManager.getConnection(db);
}catch (Throwable e){
e.printStackTrace();
Toast.makeText(getApplicationContext(),e.toString(), Toast.LENGTH_LONG).show();
}finally {
Base.close();
}
我从bitbucket xerial下载了jar文件。尝试了不同的版本,但存在相同的错误。
看到了一些与此问题有关的帖子,但是对我来说,这些帖子都不起作用。
我们将不胜感激。