今天在導入環信開發包時,編譯報如下錯:
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不配套:
從官網demo,拷貝相應的 so文件與jar包即可!!
原因二:沒有在 manifest 文件中進行 環信 appkey配置,也會出現一些莫名的錯誤!