简体   繁体   中英

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? I just has a name "preview"

I make sure that I never had this guy in Java or 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

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:

extern "C" void Java_com_AAA_livestudio_recording_camera_preview_RecordingPreviewScheduler_notifyFrameAvailable(xxx)

Do not forget extern "C" .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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