java.lang.UnsatisfiedLinkError

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


Samebug tips1

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.

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.


Solutions on the web2995

Solution icon of github
via GitHub by seker
, 7 months ago
dlopen failed: "/mnt/asec/com.eg.android.AlipayGphone-2/lib/arm/libgif.so" has bad ELF magic

Solution icon of github
via GitHub by amitks2015
, 3 months ago
dlopen failed: "/data/app/com.knowles.bali-1/lib/arm/libandroid_platform.so" has bad ELF magic

Solution icon of stackoverflow
via Stack Overflow by stephone
, 9 months ago
dlopen failed: "/data/app/com.MIL.testlib-1/lib/arm/libMILlib.so" has bad ELF magic

Solution icon of github
dlopen failed: "/data/app/com.knowles.bali-1/lib/arm/libandroid_platform.so" has bad ELF magic

Solution icon of stackoverflow
dlopen failed: "/data/data/com.test.mapp/app_files/.???" has bad ELF magic

Solution icon of stackoverflow
via Stack Overflow by Robert Hilse
, 1 year ago
dlopen failed: "/data/data/path/files/libopenh264.so" has bad ELF magic

Solution icon of github
via GitHub by nerzhul
, 1 year ago
dlopen failed: "/mnt/asec/net.minetest.minetest-1/lib/libminetest.so" has unexpected e_machine: 40

Solution icon of github
via GitHub by matart15
, 10 months ago
dlopen failed: /data/app/com.example.matar.myapplication-2/lib/arm/libavcodec.so: has text relocations

Solution icon of github
dlopen failed: "/data/app/org.test.njeapp-2/lib/arm/libpython2.7.so" has unexpected e_machine: 40

Solution icon of appcelerator
via Appcelerator JIRA by Eduardo Gomez, 1 year ago
dlopen failed: /data/app/com.app.id-2/lib/arm/libti.map.so: has text relocations

Stack trace

  • 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.<clinit>(Unknown Source) at pl.droidsonroids.gif.GifDrawable.<init>(Unknown Source)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 2 weeks ago
4 times, 2 months ago
Samebug visitor profile picture
Unknown user
Once, 2 months ago
2 times, 3 months ago
272 more bugmates