java.lang.UnsatisfiedLinkError: dlopen failed: /data/app/com.bhtc.huajuan-2/lib/x86/libffmpeg.so: has text relocations

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
Expert tip

This happens sometimes when Android fails to load the necessary libraries when you install an app. Try reinstalling it or telling your client to reinstall it, as it seems to correctly install the libraries and fixes the problem.

,

Add an Application.mk file next to your Android.mk file and make APP_PLATFORM to be equal to your minSdkVersion.

Solutions on the web

via GitHub by forgekxf
, 1 year ago
dlopen failed: /data/app/com.bhtc.huajuan-2/lib/x86/libffmpeg.so: has text relocations
via GitHub by itheimaAndroid
, 1 year ago
dlopen failed: /data/app/com.bhtc.huajuan-1/lib/arm/libx264.142.so: has text relocations
via GitHub by forgekxf
, 1 year ago
/com.bhtc.huajuan/files/instant-run/dex/slice-Cashier_SDK-v4.2.2_70150e907cbc4ced4a44dda5c7596c8c24043dbc-classes.dex"],nativeLibraryDirectories=[/data/app/com.bhtc.huajuan-2/lib/x86, /data/app/com.bhtc.huajuan-2/base.apk!/lib/x86, /vendor/lib, /system/lib]]] couldn't find "libffmpeg.so"
via GitHub by RockyLin
, 1 year ago
dlopen failed: file offset for the library "/data/app/com.rocky.TestApp-1/lib/arm64/libx264.142.so" >= file size: 0 >= 0
via GitHub by RockyLin
, 1 year ago
dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.rocky.TestApp-1/base.apk"],nativeLibraryDirectories=[/data/app/com.rocky.TestApp-1/lib/arm64, /data/app/com.rocky.TestApp-1/base.apk!/lib/arm64-v8a, /vendor/lib64, /system/lib64]]] couldn't find "libx264.142.so"
via GitHub by enginebai
, 3 months ago
dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/*/base.apk"],nativeLibraryDirectories=[/data/app/*-1/lib/x86_64, /data/app/*-1/base.apk!/lib/x86_64, /vendor/lib64, /system/lib64]]] couldn't find "libffmpeg.so"
java.lang.UnsatisfiedLinkError: dlopen failed: /data/app/com.bhtc.huajuan-2/lib/x86/libffmpeg.so: has text relocations
at java.lang.Runtime.loadLibrary(Runtime.java:372)
at java.lang.System.loadLibrary(System.java:1076)
at org.wysaid.nativePort.NativeLibraryLoader.load(NativeLibraryLoader.java:18)
at org.wysaid.nativePort.CGEFrameRenderer.(CGEFrameRenderer.java:11)
at org.wysaid.view.CameraGLSurfaceView.onSurfaceCreated(CameraGLSurfaceView.java:413)
at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1503)
at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1240)

Users with the same issue

Once, 3 weeks ago
159 times, 2 months ago
4 times, 6 months ago
8 times, 9 months ago
3 times, 9 months ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.