gpt4 book ai didi

java - 库 'jna-4.2.2.jar' 包含不会在 Android 设备上运行的 native 库

转载 作者:搜寻专家 更新时间:2023-11-01 08:34:26 31 4
gpt4 key购买 nike

我已经从互联网上下载了 jna-4.2.2.jar,现在想将这个 jar 导入到我的项目中。但是当我试图将这个 jar 导入我的项目时,出现以下错误。

[2016-06-20 09:35:01 - FaceVerificationApplication] The library 'jna-4.2.2.jar' contains native libraries that will not run on the device.
[2016-06-20 09:35:01 - FaceVerificationApplication] The following libraries were found:
[2016-06-20 09:35:01 - FaceVerificationApplication] - com/sun/jna/darwin/libjnidispatch.jnilib
[2016-06-20 09:35:01 - FaceVerificationApplication] - com/sun/jna/linux-x86/libjnidispatch.so
[2016-06-20 09:35:01 - FaceVerificationApplication] - com/sun/jna/linux-x86-64/libjnidispatch.so
[2016-06-20 09:35:01 - FaceVerificationApplication] - com/sun/jna/linux-arm/libjnidispatch.so
[2016-06-20 09:35:01 - FaceVerificationApplication] - com/sun/jna/linux-aarch64/libjnidispatch.so
[2016-06-20 09:35:01 - FaceVerificationApplication] - com/sun/jna/linux-ppc64/libjnidispatch.so
[2016-06-20 09:35:01 - FaceVerificationApplication] - com/sun/jna/linux-ppc64le/libjnidispatch.so
[2016-06-20 09:35:01 - FaceVerificationApplication] - com/sun/jna/linux-sparcv9/libjnidispatch.so
[2016-06-20 09:35:01 - FaceVerificationApplication] - com/sun/jna/sunos-x86/libjnidispatch.so
[2016-06-20 09:35:01 - FaceVerificationApplication] - com/sun/jna/sunos-x86-64/libjnidispatch.so
[2016-06-20 09:35:01 - FaceVerificationApplication] - com/sun/jna/sunos-sparc/libjnidispatch.so
[2016-06-20 09:35:01 - FaceVerificationApplication] - com/sun/jna/sunos-sparcv9/libjnidispatch.so
[2016-06-20 09:35:01 - FaceVerificationApplication] - com/sun/jna/freebsd-x86/libjnidispatch.so
[2016-06-20 09:35:01 - FaceVerificationApplication] - com/sun/jna/freebsd-x86-64/libjnidispatch.so
[2016-06-20 09:35:01 - FaceVerificationApplication] - com/sun/jna/openbsd-x86/libjnidispatch.so
[2016-06-20 09:35:01 - FaceVerificationApplication] - com/sun/jna/openbsd-x86-64/libjnidispatch.so

如何解决这个错误?任何建议都有很大帮助。

最佳答案

我已经解决了我的问题。添加 jna-4.2.2.jar 后,然后在 Eclipse 中我必须转到 Window > Preferences > Android > Build > 取消选中“当外部 jar 包含 native 库时强制出错”。那么这个问题就解决了。

关于java - 库 'jna-4.2.2.jar' 包含不会在 Android 设备上运行的 native 库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37914740/

31 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com