Search code examples
javaandroidffmpegjavacv

javaCV ffmpeg Android N Linker error


I'm hoping I can get some help on an issue I cannot seem to solve. I am trying to use javaCV FFmpegFrameGrabber to capture an RTSP stream. I have followed the instructions on configuring javaCV manually. I have ffmpeg.jar, javacv.jar, and javacpp.jar in the libs folder and the .so files in jniLibs/armeabi-v7a. I am using javaCV version 1.3.1.

When I Run the application on a device running Android 5.0.1, it runs fine, but I've tried it on several devices running Android 7+ and I consistently get the error:

E/linker: library "/system/lib/libdl.so" ("/system/lib/libdl.so") needed or dlopened by "/system/lib/libnativeloader.so" is not accessible for the namespace:

Any suggestions on how to get this working on Android 7+?


Solution

  • Check this out The UnsatisfiedLinkError X File (a real experience) It solved my problem on Samsun S4 with Android 5.