開發錯誤記錄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不配套:

 

從官網demo,拷貝相應的 so文件與jar包即可!!

原因二:沒有在 manifest 文件中進行 環信 appkey配置,也會出現一些莫名的錯誤!

 






免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM