简体   繁体   English

如何修复UnsatisfiedLinkError:dalvik.system.PathClassLoader?

[英]How to fix UnsatisfiedLinkError: dalvik.system.PathClassLoader?

I have a fingerprint scanner project. 我有一个指纹扫描仪项目。 It is working fine before I update android studio to build gradle 3.5. 在我更新android studio以构建gradle 3.5之前,它工作正常。 And know I encounter this error 并且知道我遇到这个错误

java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.lhlh.fpscanner-Y9B8PCb-5rg-DCor7GqdfQ==/base.apk"],nativeLibraryDirectories=[/data/app/com.lhlh.fpscanner-Y9B8PCb-5rg-DCor7GqdfQ==/lib/arm64, /system/lib64]]] couldn't find "libfgtitinit.so"

From what I understand the error message says that "libfgtitinit.so" can't be located in the following directory. 根据我的理解,错误消息指出“ libfgtitinit.so”不能位于以下目录中。

This error is not new for me, whenever I encounter this error after update I use the following steps to fix the problem: 这个错误对我来说不是新错误,更新后每遇到此错误时,我都会使用以下步骤解决问题:

  1. remove .jar library dependencies and .so files 删除.jar库依赖项和.so文件
  2. clean project 清洁项目
  3. re-add libraries and .so files 重新添加库和.so文件
  4. gradle sync Gradle同步
  5. invalidate cache/restart 使缓存/重启无效

but it does not work this time around. 但这一次不起作用。

With the help of Sahdeep , I have fix my project by adding abiFilters in the build.gradle. 借助于Sahdeep ,我通过在build.gradle中添加abiFilters来修复项目。

Please use this link for references. 请使用此链接作为参考。

This help me fix my project but would like to know why updating to build.gradle 3.5.0 broke my project ? 这可以帮助我修复项目,但是想知道为什么更新到build.gradle 3.5.0会破坏我的项目? It was from version build.gradle 3.4.2 and there was no abiFilters found in my gradle but the project is working fine. 它来自版本build.gradle 3.4.2,在我的gradle中没有找到abiFilters,但是该项目运行正常。 I would like to know the reason if somebody know why?. 如果有人知道为什么,我想知道原因。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 java.lang.UnsatisfiedLinkError:dalvik.system.PathClassLoader [DexPathList - java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList dalvik.system.PathClassLoader 不能转换为 java.net.URLClassLoader - dalvik.system.PathClassLoader cannot be cast to java.net.URLClassLoader 应用程序启动时加载程序dalvik.system.PathClassLoader中的java.lang.ClassNotFoundException - java.lang.ClassNotFoundException in loader dalvik.system.PathClassLoader at app launch error-dalvik.system.PathClassLoader [data / app / com.my.appname-2.apk] - error- dalvik.system.PathClassLoader [data/app/com.my.appname-2.apk] java.lang.ClassNotFoundException:com.game.mrnom.MrNomGame loader dalvik.system.PathClassLoader [/data/app/com.game.mrnom-1.apk] - java.lang.ClassNotFoundException: com.game.mrnom.MrNomGame loader dalvik.system.PathClassLoader [/data/app/com.game.mrnom-1.apk] dalvik.system.PathClassLoader.findClass中的java.lang.ClassNotFoundException - java.lang.ClassNotFoundException in dalvik.system.PathClassLoader.findClass java.lang.ClassNotFoundException:加载程序中的com.localfotos.MyWallpaperService dalvik.system.PathClassLoader@456e9880 - java.lang.ClassNotFoundException: com.localfotos.MyWallpaperService in loader dalvik.system.PathClassLoader@456e9880 我在dalvik.system.PathClassLoader.findClass中的Launcher主题java.lang.ClassNotFoundException上不断出现此错误 - I keep getting this Error on my Launcher Themes java.lang.ClassNotFoundException in dalvik.system.PathClassLoader.findClass 如何修复 UnsatisfiedLinkError? - How to fix UnsatisfiedLinkError? UnsatisfiedLinkError:无法从loader dalvik.system加载sinch-android-rtc - UnsatisfiedLinkError: Couldn't load sinch-android-rtc from loader dalvik.system
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM