Quick answer: java.lang.UnsatisfiedLinkError means Android could not load a native .so library, or loaded it and could not find a native method in it. Read the text after the exception name: couldn't find "libfoo.so" or library "libfoo.so" not found means the file is not installed for the CPU architecture the process runs as, not found: needed by means one of its dependencies is missing, cannot locate symbol means it was built for a newer Android than the device, and is 32-bit instead of 64-bit means the architectures are mixed. Most cases are fixed by shipping every native library for arm64-v8a and installing all the split APKs.

Every Android game is a small Java app that loads a large native library: libunity.so and libil2cpp.so, libUnreal.so, libgodot_android.so, or your own engine, plus one library per native plugin. When one of those loads fails, the game dies on the splash screen with an UnsatisfiedLinkError, often on some phones and not on others. The message has about eight variants and each points at a different cause. This guide shows how to read the variant, how to check what is actually inside the APK and on the device, and the fix for each cause in Unity, Godot, Unreal and plain NDK projects.

The exact error

The most common form in logcat (example values, made-up package name, line numbers vary by Android version):

E AndroidRuntime: FATAL EXCEPTION: main
E AndroidRuntime: Process: com.studio.mygame, PID: 12300
E AndroidRuntime: java.lang.UnsatisfiedLinkError: dlopen failed: library "libc++_shared.so" not found: needed by /data/app/~~Qf3xT1==/com.studio.mygame-9aBc==/lib/arm64/libvoicechat.so in namespace classloader-namespace
E AndroidRuntime: 	at java.lang.Runtime.loadLibrary0(Runtime.java:1077)
E AndroidRuntime: 	at java.lang.Runtime.loadLibrary0(Runtime.java:998)
E AndroidRuntime: 	at java.lang.System.loadLibrary(System.java:1661)

When the file itself is not there, the class loader reports it before the linker is ever called:

java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/~~Qf3xT1==/com.studio.mygame-9aBc==/base.apk"],nativeLibraryDirectories=[/data/app/~~Qf3xT1==/com.studio.mygame-9aBc==/lib/arm64, /system/lib64, /system_ext/lib64]]] couldn't find "libil2cpp.so"

And when the library loaded but a native method has no implementation in it:

java.lang.UnsatisfiedLinkError: No implementation found for void com.studio.mygame.NativeBridge.nativeInit() (tried Java_com_studio_mygame_NativeBridge_nativeInit and Java_com_studio_mygame_NativeBridge_nativeInit__) - is the library loaded, e.g. System.loadLibrary?

Older Android versions print the last message without the trailing hint, ending at the closing parenthesis.

What the error means

Loading a native library is a three-step process, and each step has its own failure text.

  1. Find the file. System.loadLibrary("il2cpp") asks the app’s class loader for libil2cpp.so. It searches the directories printed as nativeLibraryDirectories. If nothing is there, you get couldn't find "libil2cpp.so".
  2. Link it. The path goes to the dynamic linker’s dlopen(). The linker checks that the file matches the process (64-bit or 32-bit, the right CPU), loads every library it depends on, and resolves every function it imports. Any failure here is reported as dlopen failed: ....
  3. Bind the methods. The first time Java calls a native method, the runtime looks for a function named Java_package_Class_method in the loaded libraries. If none exists, you get No implementation found.

One rule explains most reports that affect only some devices. At install time the package manager picks a single architecture (ABI) for the whole app, based on which lib/ folders the APK contains and what the device supports. If the APK has a lib/arm64-v8a folder, a 64-bit phone runs the game as a 64-bit process and installs only that folder. A plugin that shipped only an armeabi-v7a build of its library is then invisible, even though the file is inside the APK. Nothing falls back to 32-bit per library.

What each message variant tells you

MessageWhat failedUsual cause
couldn't find "libmain.so" (or libil2cpp.so, libunity.so)No such file in the app’s native library directoryThat ABI is missing from the build, or only part of a split APK set was installed
dlopen failed: library "libfoo.so" not foundThe linker could not open the named librarySame as above, or a dependency is missing (older Android versions do not say which library needed it)
dlopen failed: library "libc++_shared.so" not found: needed by /data/app/.../libfoo.so in namespace classloader-namespacelibfoo.so was found; a library it depends on was notThe C++ runtime or another dependency was never packaged
dlopen failed: cannot locate symbol "X" referenced by "/data/app/.../libfoo.so"...A function the library imports does not exist on this deviceBuilt against a newer API level than the device runs, or two versions of a dependency are mixed
dlopen failed: "/data/app/.../lib/arm/libfoo.so" is 32-bit instead of 64-bit (or the reverse)The file’s ELF class does not match the processA library loaded by a hard-coded path, or an .so placed in the wrong ABI folder
dlopen failed: "..." is for EM_X86_64 (62) instead of EM_AARCH64 (183)The file is for a different CPU familyAn x86 library copied into an ARM folder, or the reverse. Older Android versions say has unexpected e_machine
dlopen failed: library "libfoo.so" needed or dlopened by "..." is not accessible for the namespace "classloader-namespace"The library is a private part of the systemCode that depended on a non-public system library, which apps cannot load since Android 7
dlopen failed: "..." program alignment (4096) cannot be smaller than system page size (16384)The library is aligned for 4 KB pagesThe device uses 16 KB pages; see the 16 KB page size guide
No implementation found for ...No exported function matches the native methodThe library was never loaded, code shrinking renamed the Java class, or the C++ function is not exported

Find which cause you have

Get the full message and the lines before it. Engines log which library they were loading just before the exception:

adb logcat -d | grep -B 5 -A 12 UnsatisfiedLinkError

Then compare three things: what the device supports, what the build contains and what was installed.

# 1. ABIs the device supports, in order of preference
adb shell getprop ro.product.cpu.abilist

# 2. Native libraries inside the APK
unzip -l mygame.apk | grep "\.so$"

# 3. What is installed, and the ABI Android chose for the app
adb shell pm path com.studio.mygame
adb shell dumpsys package com.studio.mygame | grep -i abi

A healthy 64-bit install looks like this: the device lists arm64-v8a first, the APK has every library under lib/arm64-v8a/, and dumpsys prints primaryCpuAbi=arm64-v8a. Read the listing for these signs:

If you ship an .aab, open the App bundle explorer in Play Console, pick the version and look at the device-specific APKs it lists per ABI. That is what players’ devices actually receive.

For needed by and cannot locate symbol, inspect the library itself with the tools in the NDK (toolchains/llvm/prebuilt/<host>/bin):

# 64-bit or 32-bit, and which CPU
llvm-readelf -h libvoicechat.so | grep -E "Class|Machine"

# Libraries it needs at load time
llvm-readelf -d libvoicechat.so | grep NEEDED

# Functions it expects someone else to provide
llvm-nm -D --undefined-only libvoicechat.so

Every NEEDED entry must be either a public system library (libc.so, libm.so, liblog.so, libandroid.so, libEGL.so and similar) or a file you ship in the same ABI folder.

Fix a missing or mismatched ABI

The goal is simple to state: every native library in the game exists for every ABI the build declares. Google Play requires 64-bit support, and some current phones run only 64-bit apps, so arm64-v8a is not optional.

Unity

Open Edit > Project Settings > Player > Other Settings > Configuration. Set Scripting Backend to IL2CPP, then under Target Architectures tick ARM64. The ARM64 checkbox is only enabled with IL2CPP; a Mono build can only produce ARMv7. Keep ARMv7 ticked only if every plugin also ships 32-bit libraries and you still support 32-bit devices.

Then check the plugins. Native libraries belong in per-ABI folders such as Assets/Plugins/Android/libs/arm64-v8a/libfoo.so. Select each .so in the Project window and confirm in the Inspector that the platform is Android and the CPU matches the file; Unity does not validate that setting. For an .aar plugin, open it as a zip archive and look in jni/: it needs a jni/arm64-v8a/ folder. If it has only jni/armeabi-v7a/, no setting fixes it. Update the plugin or remove it.

Godot 4

Open Project > Export, select the Android preset and look at the Architectures section, which has checkboxes for armeabi-v7a, arm64-v8a, x86 and x86_64. Tick arm64-v8a. If the project uses a GDExtension, its .gdextension file must list a library for each architecture you tick:

[libraries]
android.debug.arm64 = "res://bin/libmyext.android.template_debug.arm64.so"
android.release.arm64 = "res://bin/libmyext.android.template_release.arm64.so"

Unreal Engine 5

UE5 builds Android games for arm64; the setting is Support arm64 [aka arm64-v8a] under Project Settings > Platforms > Android > Build. Link errors of this kind in Unreal usually come from a third-party .so that a plugin links against and never copies into the APK. The copy is the job of the plugin’s UPL (Unreal Plugin Language) XML file, so check that it copies the library into libs/arm64-v8a.

Gradle and NDK projects

Restrict the build to the ABIs you can fully supply. A half-filled folder is worse than no folder, because the device picks it and then finds libraries missing:

android {
    defaultConfig {
        ndk {
            abiFilters 'arm64-v8a', 'armeabi-v7a'
        }
    }
}

The same reasoning applies to x86. Tick x86-64 in Unity, or x86_64 in Godot, only when every plugin ships that ABI. If the build has no folder the device can use at all, the install is refused instead; that is INSTALL_FAILED_NO_MATCHING_ABIS.

Fix an incomplete install from an app bundle

An .aab is not installable. Google Play turns it into a base APK plus configuration splits for ABI, screen density and language, and installs the right set together. The base APK alone contains no native libraries. Anyone who copies only base.apk to another phone, or downloads the game from a site that redistributes extracted APKs, gets couldn't find "libmain.so" on launch.

For your own testing, never drag a single APK out of a bundle. Let bundletool build and install the set for the connected device:

bundletool build-apks --bundle=mygame.aab --output=mygame.apks --connected-device
bundletool install-apks --apks=mygame.apks

To hand a tester one file, build a universal APK with --mode=universal, or download the signed universal APK from the App bundle explorer. If you already have the splits as files, install them in one command:

adb install-multiple base.apk split_config.arm64_v8a.apk split_config.xxhdpi.apk

Crash reports of this type from players who did not install through Google Play are usually this cause, and there is nothing to fix in the build.

Fix a missing dependency or a missing symbol

libc++_shared.so not found. A prebuilt library was linked against the shared C++ runtime and expects the app to carry it. Gradle packages it automatically for code you compile with -DANDROID_STL=c++_shared, but not for a prebuilt .so you drop in, and Unity does not add it for you. Copy it from the NDK (toolchains/llvm/prebuilt/<host>/sysroot/usr/lib/aarch64-linux-android/libc++_shared.so for arm64) into the same ABI folder as the library that needs it. The opposite mistake produces the same error: two plugins each ship a copy, the build fails with a duplicate file, and someone adds an exclude rule that removes both. Keep one copy instead:

android {
    packagingOptions {
        pickFirst 'lib/**/libc++_shared.so'
    }
}

Libraries built with very different NDK versions may not work with a single runtime copy, so prefer plugins built with a recent NDK.

Not accessible for the namespace. The library depends on a private system library. Since Android 7 apps can load only the public NDK libraries. Ship your own build of that dependency inside the APK.

Cannot locate symbol. Imports are resolved when the library loads, so one missing function blocks the whole library, even if the game never calls it. The usual reason is a library built with a higher minimum API level than the phone runs: the function exists in newer versions of Android’s C library and not in this one. Rebuild with the NDK API level set to the lowest Android version you support (ANDROID_PLATFORM in CMake, APP_PLATFORM in ndk-build), or raise the game’s minimum (Minimum API Level in Unity’s Player settings) to what the plugin requires. If the missing symbol is a long C++ name starting with _ZNSt6__ndk1, the library found an older libc++_shared.so than the one it was built with: check which copy pickFirst kept.

Fix “No implementation found”

Work through three questions in order.

Was the library loaded? Search logcat for an earlier UnsatisfiedLinkError from System.loadLibrary that some code caught and ignored. If the load failed, fix that first.

Did code shrinking rename the Java side? The JNI function name is built from the package, class and method name. If R8 renames NativeBridge to a.b, the lookup for Java_com_studio_mygame_NativeBridge_nativeInit can never match. This is why the error appears only in release builds. Keep the names:

-keepclasseswithmembernames,includedescriptorclasses class * {
    native <methods>;
}

In Unity, enable Custom Proguard File under Player > Publishing Settings > Build and add the rule to Assets/Plugins/Android/proguard-user.txt. More on this in the R8 stripping guide.

Is the native function exported under the right name? In a C++ file it must be declared extern "C" and visible:

// Broken: C++ name mangling changes the symbol, and builds that hide
// symbols by default do not export it at all.
void Java_com_studio_mygame_NativeBridge_nativeInit(JNIEnv* env, jclass clazz) {
    InitEngine();
}

// Fixed
extern "C" JNIEXPORT void JNICALL
Java_com_studio_mygame_NativeBridge_nativeInit(JNIEnv* env, jclass clazz) {
    InitEngine();
}

Check what the library really exports with llvm-nm -D --defined-only libgame.so | grep Java_. An underscore in a package or class name must be written as _1 in the function name.

How to confirm the fix

Test on a 64-bit-only environment, since that is where missing arm64 libraries show. Android Emulator system images are 64-bit only from Android 12 (API level 31), and on a physical phone you can force the choice:

adb install --abi arm64-v8a mygame.apk

If that command fails with INSTALL_FAILED_NO_MATCHING_ABIS, the APK has no arm64 libraries. Then upload the bundle to an internal testing track and install it from Google Play, because that is the only path that exercises the real split APKs. Launch the game, exercise every plugin (ads, purchases, voice, sign-in) so that late-loaded libraries are touched, and search logcat for UnsatisfiedLinkError once more.

Where Bugnet fits

When the engine’s own library fails to load, the game never starts, and a game that never starts cannot report itself. Bugnet does not capture this crash, or any native crash, as a stack trace; logcat and Play Console are the sources. What Bugnet offers for a launch failure is a known-issue entry on the project’s public tracker, so affected players can see that the build is being fixed (see public pages).

A plugin library that fails later is different. In a Unity game, a failed plugin call that surfaces in C# as an AndroidJavaException or a DllNotFoundException is a logged exception, and the Unity SDK files it with recent log lines, the game version, OS version and CPU. Reports with the same title stack into one entry with an occurrence count, which shows whether the failures share one device family or one build. A Java exception thrown on another thread ends the process, and Bugnet does not see it.

Frequently asked questions

What does java.lang.UnsatisfiedLinkError: dlopen failed mean?

Android found a native library file but the dynamic linker could not load it. The text after dlopen failed gives the reason: a dependency that is not packaged, a function the device does not have, or a file built for a different CPU architecture. If the message says couldn't find instead, the file itself is not installed.

Why does my game crash with couldn't find libmain.so or libil2cpp.so on only some phones?

Android picks one architecture for the whole app at install time. On those phones the folder for the chosen architecture, usually arm64-v8a, is missing that library, either because the build or a plugin shipped only 32-bit libraries or because only the base APK of a split set was installed.

How do I fix dlopen failed: library libc++_shared.so not found?

A prebuilt native library depends on the shared C++ runtime and the APK does not contain it. Copy libc++_shared.so from the NDK into the same ABI folder as the library that needs it, and if two plugins ship it, keep one copy with a pickFirst packaging rule instead of excluding it.

What causes dlopen failed: cannot locate symbol?

The library imports a function that does not exist on the device. Usually it was built against a newer Android API level than the phone runs, so rebuild it with the NDK API level set to your minimum supported version or raise the game's minimum API level.

Why do I get No implementation found for a native method only in release builds?

Code shrinking with R8 renamed the Java class or method, so the JNI function name no longer matches. Add a keep rule for classes with native methods. The same error appears if the library was never loaded or the C++ function is missing extern C and JNIEXPORT.

Read the words after the exception name before changing any setting. They tell you whether the file is missing, a dependency is missing, or the library was built for a different CPU or Android version.