[英]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: 这个错误对我来说不是新错误,更新后每遇到此错误时,我都会使用以下步骤解决问题:
- remove .jar library dependencies and .so files 删除.jar库依赖项和.so文件
- clean project 清洁项目
- re-add libraries and .so files 重新添加库和.so文件
- gradle sync Gradle同步
- 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.