[英]android-arm/libjnidispatch.so not found error
In my app, I am adding third party hardware connectivity and using their provided code for java.在我的应用程序中,我添加了第三方硬件连接并使用他们提供的 java 代码。 Also using
jna.jar
to interact with that code as it uses native library to load some .so
files.还使用
jna.jar
与该代码交互,因为它使用本机库加载一些.so
文件。 It throws the error:它抛出错误:
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.`
I tried adding android-arm.jar which is having libjnidispatch.so separately but compiler is looking for jna.jar's path.我尝试添加 android-arm.jar ,它单独具有 libjnidispatch.so 但编译器正在寻找 jna.jar 的路径。 Thanks!
谢谢!
And also please note that linux architecture != android architecture (google uses a different c library (bionic), which is a different one than the normal linux distributions) For all architectures see:还请注意 linux 架构 != android 架构(谷歌使用不同的 c 库(仿生),这与普通的 linux 发行版不同)对于所有架构,请参见:
https://github.com/java-native-access/jna/tree/master/lib/native https://github.com/java-native-access/jna/tree/master/lib/native
Which version of JNA do you use?您使用哪个版本的 JNA? (There was a bug in JNA 4.2.2 /4.3.0 which might also be a cause)
(JNA 4.2.2 /4.3.0 中存在一个错误,这也可能是一个原因)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.