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.


8 months ago
Expert tip

Solutions on the web1034

Solution icon of github
via GitHub by seker
, 9 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
, 5 months ago
dlopen failed: "/data/app/com.knowles.bali-1/lib/arm/libandroid_platform.so" has bad ELF magic

Solution icon of github
via GitHub by droidwolf
, 1 month ago
dlopen failed: "/data/app/pkg/lib/arm/libgifimage.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
via Stack Overflow by stephone
, 11 months ago
dlopen failed: "/data/app/com.MIL.testlib-1/lib/arm/libMILlib.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 appcelerator
via Appcelerator JIRA by Gabriel Stoppini, 1 year ago
dlopen failed: /data/app/com.mypackage-2/lib/arm/libti.inappbilling.so: has text relocations

Solution icon of github
via GitHub by player-03
, 7 months ago
dlopen failed: /data/app/com.gokidgames.gokidmemory-2/lib/arm/libApplicationMain.so: has text relocations

Solution icon of github
via GitHub by ashcoding
, 1 year ago
dlopen failed: /data/app/sg.com.appcelerator-2/lib/arm/libti.compression.so: has text relocations

Solution icon of github
via GitHub by sureshg
, 1 year ago
dlopen failed: /data/app/io.test.gopherandy-2/lib/arm/libgojni.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
6 times, 1 day ago
Once, 3 weeks ago
Samebug visitor profile picture
Unknown user
Once, 3 weeks ago
Once, 1 month ago
276 more bugmates