简体   繁体   English

无法加载本机库

[英]Failed to load native library

Failed to load native library when i work with ndk functions in android studio. 当我在android studio中使用ndk函数时,无法加载本机库。 so please help me i am new for doing this and please correct me if wrong any where. 所以请帮助我,我是新来的,如果在任何地方出错,请纠正我。 Actually i was doing some scanning document using cardio sdk. 实际上,我正在使用cardio sdk做一些扫描文档。 Basically i want to scan any document like cardio but i want to scan boundary not text or number only boundary of documents. 基本上我想扫描任何文件,例如有氧运动,但我想扫描边界而不是文本或仅数字边界的文件。 if you have any other solution then please suggest me. 如果您还有其他解决方案,请提出建议。

This is my activity code.
 if (nUseNeon()) {
                System.loadLibrary("cardioRecognizer");
                Log.i(Util.PUBLIC_LOG_TAG, "Loaded card.io NEON library");
            }
This is my error in my log cat.

Failed to load native library: JNI_ERR returned from JNI_OnLoad in "/data/app/com.surfaceview2-1/lib/arm/libcardioRecognizer.so"

Please check that: 请检查:

1) you have the libcardioRecognizer.so library in the folder: app/src/main/jniLibs/armeabi of your Android Studio project 1)您的Android Studio项目文件夹中的libcardioRecognizer.so库为: app/src/main/jniLibs/armeabi

2) the library is compatibile with the architecture of the device you're using. 2)该库与您使用的设备的体系结构兼容。 If not, you can compile it and place in the folder: 如果没有,您可以编译它并放在文件夹中:

app/src/main/jniLibs/armeabi-v7a (for arm-v7 architecture)
app/src/main/jniLibs/x86 (for x86 architecture)

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

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