简体   繁体   English

Android JNI UnsatisfiedLinkError函数名称错误

[英]Android jni UnsatisfiedLinkError wrong function name

03-02 16:19:35.302 12503-12503/com.aa.bb E/CrashReport: java.lang.UnsatisfiedLinkError: No implementation found for void com.AAA.livestudio.recording.camera.preview.RecordingPreviewScheduler.notifyFrameAvailable() (tried Java_com_AAA_livestudio_recording_camera_previfw_RecordingPreviewScheduler_notifyFrameAvailable and Java_com_AAA_livestudio_recording_camera_preview_RecordingPreviewScheduler_notifyFrameAvailable__)

I met a weired problem, When I open a Activity, crashes happened above, 我遇到了一个奇怪的问题,当我打开一个活动时,上面发生了崩溃,

where is the word "previfw" from? “ previfw”一词从哪里来? I just has a name "preview" 我只是有一个名字“预览”

I make sure that I never had this guy in Java or C++ 我确保我从未有过使用Java或C ++的人

Now I suspect may be memory leak or memery insufficy 现在我怀疑可能是内存泄漏或记忆不足

Thank you 谢谢

The error tells you that it does not find the JNI function for 该错误告诉您,它没有找到JNI函数

native void com.AAA.livestudio.recording.camera.preview.RecordingPreviewScheduler.notifyFrameAvailable()

You should check your JNI code to see if your C/C++ code provides the function: 您应该检查您的JNI代码,以查看您的C / C ++代码是否提供以下功能:

extern "C" void Java_com_AAA_livestudio_recording_camera_preview_RecordingPreviewScheduler_notifyFrameAvailable(xxx)

Do not forget extern "C" . 不要忘记extern "C"

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

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