[英]com/sun/jna/android-arm/libjnidispatch.so not found in resource path
[英]android-arm/libjnidispatch.so not found error
在我的應用程序中,我添加了第三方硬件連接並使用他們提供的 java 代碼。 還使用jna.jar
與該代碼交互,因為它使用本機庫加載一些.so
文件。 它拋出錯誤:
java.lang.UnsatisfiedLinkError: Native library (com/sun/jna/android-arm/libjnidispatch.so) not found in resource path (.) Please help where can I get the jar with android-arm/libjnidispatch.so in it.`
我嘗試添加 android-arm.jar ,它單獨具有 libjnidispatch.so 但編譯器正在尋找 jna.jar 的路徑。 謝謝!
還請注意 linux 架構 != android 架構(谷歌使用不同的 c 庫(仿生),這與普通的 linux 發行版不同)對於所有架構,請參見:
https://github.com/java-native-access/jna/tree/master/lib/native
您使用哪個版本的 JNA? (JNA 4.2.2 /4.3.0 中存在一個錯誤,這也可能是一個原因)
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.