java.lang.UnsatisfiedLinkError: dlopen failed: "/data/data/com.airbnb.android.react.maps.example/lib-main/libgnustl_shared.so" is 32-bit instead of 64-bit 01-12 09:18: libgnustl_shared.so" is 32-bit instead of 64-bit


Samebug tips

When installing an APK, it automatically extracts the libraries of the right arch type and has them available for System.loadLibrary. But, if you're trying to load a non-standard library, the installer won't know your app has 32bit native code.


7 months ago
Expert tip

Solutions on the web

Solution icon of github
dlopen failed: "/data/data/com.airbnb.android.react.maps.example/lib-main/libgnustl_shared.so" is 32-bit instead of 64-bit 01-12 09:18: libgnustl_shared.so" is 32-bit instead of 64-bit

Solution icon of github
dlopen failed: "/data/data/com.demo/lib-main/libgnustl_shared.so" is 32-bit instead of 64-bit

Solution icon of github
dlopen failed: "/data/data/com.pushdemo/lib-main/libgnustl_shared.so" is 32-bit instead of 64-bit

Solution icon of github
dlopen failed: "/data/data/com.github.markzhai.react.preloader.demo/lib-main/libgnustl_shared.so" is 32-bit instead of 64-bit

Solution icon of github
dlopen failed: "/data/data/com.p1.mobile.putong/lib-main/libsqlite3x.so" is 32-bit instead of 64-bit

Solution icon of github
dlopen failed: "/data/app/me.piebridge.brevent-1/lib/x86/libreader.so" is 32-bit instead of 64-bit

Solution icon of github
dlopen failed: "/data/data/com.weyao.littlebee/files/libweexv8bk1.so" is 32-bit instead of 64-bit

Solution icon of stackoverflow
dlopen failed: "/data/data/com.ibm.myApp/files/libcrypto.so.1.0.0" is 32-bit instead of 64-bit

Solution icon of github
via GitHub by zhoukekestar
, 10 months ago
dlopen failed: "/data/data/com.github.zhoukekestar.myapplication/files/libweexv8bk1.so" is 32-bit instead of 64-bit

Solution icon of stackoverflow
dlopen failed: "/data/data/com.my.app/app_native/libmyNative.so" is 32-bit instead of 64-bit

Stack trace

java.lang.UnsatisfiedLinkError: dlopen failed: "/data/data/com.airbnb.android.react.maps.example/lib-main/libgnustl_shared.so" is 32-bit instead of 64-bit
01-12 09:18:
libgnustl_shared.so" is 32-bit instead of 64-bit
	at java.lang.Runtime.load(Runtime.java:332)
	at java.lang.System.load(System.java:1069)
	at com.facebook.soloader.DirectorySoSource.loadLibraryFrom(DirectorySoSource.java:71)
	at com.facebook.soloader.DirectorySoSource.loadLibrary(DirectorySoSource.java:42)
	at com.facebook.soloader.SoLoader.loadLibraryBySoName(SoLoader.java:299)
	at com.facebook.soloader.DirectorySoSource.loadLibraryFrom(DirectorySoSource.java:65)
	at com.facebook.soloader.DirectorySoSource.loadLibrary(DirectorySoSource.java:42)
	at com.facebook.soloader.SoLoader.loadLibraryBySoName(SoLoader.java:299)
	at com.facebook.soloader.DirectorySoSource.loadLibraryFrom(DirectorySoSource.java:65)
	at com.facebook.soloader.DirectorySoSource.loadLibrary(DirectorySoSource.java:42)
	at com.facebook.soloader.SoLoader.loadLibraryBySoName(SoLoader.java:299)
	at com.facebook.soloader.DirectorySoSource.loadLibraryFrom(DirectorySoSource.java:65)
	at com.facebook.soloader.DirectorySoSource.loadLibrary(DirectorySoSource.java:42)
	at com.facebook.soloader.SoLoader.loadLibraryBySoName(SoLoader.java:299)
	at com.facebook.soloader.DirectorySoSource.loadLibraryFrom(DirectorySoSource.java:65)
	at com.facebook.soloader.DirectorySoSource.loadLibrary(DirectorySoSource.java:42)
	at com.facebook.soloader.SoLoader.loadLibraryBySoName(SoLoader.java:299)
	at com.facebook.soloader.SoLoader.loadLibrary(SoLoader.java:247)
	at com.facebook.react.bridge.ReactBridge.staticInit(ReactBridge.java:24)
	at com.facebook.react.bridge.ReactBridge.<clinit>(ReactBridge.java:20)
	at com.facebook.react.bridge.ReactBridge.staticInit(ReactBridge.java:24)
	at com.facebook.react.bridge.NativeMap.<clinit>(NativeMap.java:22)
	at com.facebook.react.JSCConfig$1.getConfigMap(JSCConfig.java:14)
	at com.facebook.react.XReactInstanceManagerImpl.recreateReactContextInBackgroundFromBundleLoader(XReactInstanceManagerImpl.java:431)
	at com.facebook.react.XReactInstanceManagerImpl.access$1300(XReactInstanceManagerImpl.java:110)
	at com.facebook.react.XReactInstanceManagerImpl$3$1.run(XReactInstanceManagerImpl.java:416)
	at android.os.Handler.handleCallback(Handler.java:739)
	at android.os.Handler.dispatchMessage(Handler.java:95)
	at android.os.Looper.loop(Looper.java:152)
	at android.app.ActivityThread.main(ActivityThread.java:5507)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)

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, 11 months ago
Once, 3 months ago
Samebug visitor profile picture
Unknown user
Once, 10 months ago
134 times, 11 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
43 more bugmates