Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

android报错No implementation MNNNetNative #3139

Open
CangHaiQingYue opened this issue Dec 26, 2024 · 1 comment
Open

android报错No implementation MNNNetNative #3139

CangHaiQingYue opened this issue Dec 26, 2024 · 1 comment
Labels
User The user ask question about how to use. Or don't use MNN correctly and cause bug.

Comments

@CangHaiQingYue
Copy link

你好,我在尝试android demo的时候,报错:
No implementation found for long com.example.mnn.MNNNetNative.nativeCreateNetFromFile(java.lang.String) (tried Java_com_example_mnn_MNNNetNative_nativeCreateNetFromFile and Java_com_example_mnn_MNNNetNative_nativeCreateNetFromFile__Ljava_lang_String_2) 2024-12-26 11:22:40.460 21060-21060 AndroidRuntime com.example.javacvtest E FATAL EXCEPTION: main Process: com.example.javacvtest, PID: 21060 java.lang.UnsatisfiedLinkError: No implementation found for long com.example.mnn.MNNNetNative.nativeCreateNetFromFile(java.lang.String) (tried Java_com_example_mnn_MNNNetNative_nativeCreateNetFromFile and Java_com_example_mnn_MNNNetNative_nativeCreateNetFromFile__Ljava_lang_String_2) at com.example.mnn.MNNNetNative.nativeCreateNetFromFile(Native Method) at com.example.mnn.MNNNetInstance.createFromFile(MNNNetInstance.java:10) at com.example.javacvtest.MainActivity.initializeOpenCVDependencies(MainActivity.java:211) at com.example.javacvtest.MainActivity.access$000(MainActivity.java:89) at com.example.javacvtest.MainActivity$1.onManagerConnected(MainActivity.java:134) at com.example.javacvtest.MainActivity.onResume(MainActivity.java:124) at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1457) at android.app.Activity.performResume(Activity.java:8298)

相关的.so文件libs文件我已经放到了app/libs/目录下,请问还需要配置哪些路径吗?
image

@jxt1234
Copy link
Collaborator

jxt1234 commented Dec 26, 2024

应该是 Java 层没有调 System.load ,或者 load 时报错了。看下前面的 log

@jxt1234 jxt1234 added the User The user ask question about how to use. Or don't use MNN correctly and cause bug. label Dec 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
User The user ask question about how to use. Or don't use MNN correctly and cause bug.
Projects
None yet
Development

No branches or pull requests

2 participants