开发错误记录13:java.lang.UnsatisfiedLinkError: Couldn't load xxx.so: findLibrary returned null

时间:2023-03-09 14:47:16
开发错误记录13:java.lang.UnsatisfiedLinkError: Couldn't load xxx.so: findLibrary returned null

今天在导入环信开发包时,编译报如下错:

java.lang.UnsatisfiedLinkError: Couldn't load hyphenate_av from loader dalvik.system.PathClassLoader

[dexPath=/data/app/com.hyphenate.litedemo-1.apk,libraryPath=/data/app-lib/com.hyphenate.litedemo-1]:

findLibrary returned null

简化:java.lang.UnsatisfiedLinkError: Couldn't load xxx.so: findLibrary returned null

原因一:so库与相应的jar不配套:

开发错误记录13:java.lang.UnsatisfiedLinkError: Couldn't load xxx.so: findLibrary returned null

从官网demo,拷贝相应的 so文件与jar包即可!!

原因二:没有在 manifest 文件中进行 环信 appkey配置,也会出现一些莫名的错误!