java.lang.UnsatisfiedLinkError: dlopen failed: "/mnt/asec/com.eg.android.AlipayGphone-2/lib/arm/libgif.so" has bad ELF magic

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 seker
, 11 months ago
dlopen failed: "/mnt/asec/com.eg.android.AlipayGphone-2/lib/arm/libgif.so" has bad ELF magic
via GitHub by ZWPDean
, 11 months ago
com.android.tools.fd.runtime.IncrementalClassLoader$DelegateClassLoader[...nativeLibraryDirectories=[/data/app/com.aibasis.xiaole_chat-1/lib/arm64, /vendor/lib64, /system/lib64, /vendor/lib64, /system/lib64]]] couldn't find "libpl_droidsonroids_gif.so"
via GitHub by abuharsky
, 2 years ago
dlopen failed: /data/app/com.testplayer-1/lib/arm/libavcodec.so: has text relocations
via GitHub by koikic
, 1 year ago
dlopen failed: /data/app/com.example.christianjs.spitchee-1/lib/arm/libtinyWRAP_neon.so: has text relocations
via GitHub by riless
, 11 months ago
dlopen failed: cannot locate symbol "__aeabi_memclr4" referenced by "/data/app/com.company.android.camera-2/lib/arm/libcamera.so"...
via Google Groups by Mohammad Ahmad, 1 year ago
dlopen failed: >> "/data/app/com.google.android.webview-1/lib/arm/libwebviewchromium.so" is >> 32-bit instead of 64-bit
java.lang.UnsatisfiedLinkError: dlopen failed: "/mnt/asec/com.eg.android.AlipayGphone-2/lib/arm/libgif.so" has bad ELF magic
at java.lang.Runtime.loadLibrary(Runtime.java:384)
at java.lang.System.loadLibrary(System.java:1086)
at pl.droidsonroids.gif.GifInfoHandle.(Unknown Source)
at pl.droidsonroids.gif.GifDrawable.(Unknown Source)

Users with the same issue

Once, 2 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.