简体   繁体   English

将 ndk 项目/库与驱动程序一起使用

[英]Using ndk project/library with drivers

I have this demo project: http://www73.zippyshare.com/v/74674979/file.html which I got for using http://www.aclas.tw/Products/AO1X/ .我有这个演示项目: http : //www73.zippyshare.com/v/74674979/file.html ,这是我使用http://www.aclas.tw/Products/AO1X/得到的。

My problem for using this is in the documentation.我使用它的问题在文档中。 Which does not exist.哪个不存在。

I understand how the Java part of the code works but I don't know how to implement this in my project.我了解代码的 Java 部分是如何工作的,但我不知道如何在我的项目中实现这一点。

I downloaded and installed ndk hoping I would be able to run the project but it crashed at the most important part:我下载并安装了 ndk,希望能够运行该项目,但它在最重要的部分崩溃了:

System.loadLibrary("AclasArmPos"); System.loadLibrary("AclasArmPos");

I don't know what to do and there is no description on how to use it.我不知道该怎么做,也没有关于如何使用它的描述。 Except the code itself which I cannot run.除了我无法运行的代码本身。

Place the .so files under jni/libs.将 .so 文件放在 jni/libs 下。 If you have .so files for multiple architectures, create folders like x86, armv7a within the jni folder and place the .so files in the corresponding folder.如果您有多个架构的 .so 文件,请在 jni 文件夹中创建 x86、armv7a 等文件夹,并将 .so 文件放在相应的文件夹中。 If you are using Android studio, the steps to follow are slightly different.如果您使用的是 Android Studio,则要遵循的步骤略有不同。 Can you provide more details?你能提供更多细节吗?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM