在我的应用程序中,我添加了第三方硬件连接并使用他们提供的 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.`
Run Code Online (Sandbox Code Playgroud)
我尝试添加 android-arm.jar ,它单独具有 libjnidispatch.so 但编译器正在寻找 jna.jar 的路径。谢谢!