# java.lang.UnsatisfiedLinkError: Shared library "/system/lib64/libandroid.so" already opened by ClassLoader 0x0; can't open in ClassLoader 0x7ba4cbd96c

**URL:** <https://forums.unrealengine.com/t/java-lang-unsatisfiedlinkerror-shared-library-system-lib64-libandroid-so-already-opened-by-classloader-0x0-cant-open-in-classloader-0x7ba4cbd96c/2665482>\
**Category:** Mobile\
**Tags:** build, unreal-engine, crash, Android, question\
**Created:** [October 15, 2025, 9:25am UTC](https://forums.unrealengine.com/t/java-lang-unsatisfiedlinkerror-shared-library-system-lib64-libandroid-so-already-opened-by-classloader-0x0-cant-open-in-classloader-0x7ba4cbd96c/2665482 "2025-10-15T09:25:33Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![dugong\_ZH](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dugong\_ZH](https://forums.unrealengine.com/u/dugong_ZH)\
**Post date:** [October 15, 2025, 9:25am UTC](https://forums.unrealengine.com/t/java-lang-unsatisfiedlinkerror-shared-library-system-lib64-libandroid-so-already-opened-by-classloader-0x0-cant-open-in-classloader-0x7ba4cbd96c/2665482/1 "2025-10-15T09:25:33Z")

</div>

# Question Describe

I have built an Android package for my project. It works properly on new mobile phones, but I encountered the issue mentioned in the title on an old mobile phone. How should I resolve this?

# Crash Report

```shell
10-15 14:28:06.993 22262 22299 E AndroidRuntime: FATAL EXCEPTION: LoadLibraries
10-15 14:28:06.993 22262 22299 E AndroidRuntime: Process: <MyPackageName>, PID: 22262
10-15 14:28:06.993 22262 22299 E AndroidRuntime: java.lang.UnsatisfiedLinkError: Shared library "/system/lib64/libandroid.so" already opened by ClassLoader 0x0; can't open in ClassLoader 0x7ba4cbd96c
10-15 14:28:06.993 22262 22299 E AndroidRuntime: at java.lang.Runtime.loadLibrary0(Runtime.java:1016)
10-15 14:28:06.993 22262 22299 E AndroidRuntime: at java.lang.System.loadLibrary(System.java:1657)
10-15 14:28:06.993 22262 22299 E AndroidRuntime: at com.epicgames.unreal.GameApplication.LoadLibraries(GameApplication.java:139)
10-15 14:28:06.993 22262 22299 E AndroidRuntime: at com.epicgames.unreal.GameApplication$1.run(GameApplication.java:182)
10-15 14:28:06.993 22262 22299 E AndroidRuntime: at java.lang.Thread.run(Thread.java:764)

```

# Software & Hardware Info

| | |
| --- | --- |
| Unreal Version | 5.6 |
| Android Version | 8.1.0 sdk:27 |
| SOC | Qualcomm SDM660 SoC |
| OpenGL Version | ES 3.2 |
| cell phone | vivo X20A |

I noticed that there is a “System.loadLibrary(“android”);” in GameApplication.java. Maybe that’s the reason why it crashed. But I have no clue why it works fine in other phones and how can i fix it.

```java
protected static void LoadLibraries(String CommandLine)
	{
		// We need to decide on enabling memory tracing before loading native code.
		// ignore for now
		try
		{
			System.loadLibrary("android");
			...

		}
		catch (Exception e)
		{
			Log.debug(e.toString());
		}
	}

```

Appreciate any help!

---

<div class="post-metadata">

**Author:** ![Tre-Cool-Fox](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tre-cool-fox/32/468473_2.png) [@Tre-Cool-Fox](https://forums.unrealengine.com/u/Tre-Cool-Fox)\
**Post date:** [October 25, 2025, 9:18pm UTC](https://forums.unrealengine.com/t/java-lang-unsatisfiedlinkerror-shared-library-system-lib64-libandroid-so-already-opened-by-classloader-0x0-cant-open-in-classloader-0x7ba4cbd96c/2665482/2 "2025-10-25T21:18:19Z")

</div>

I have the exact same issue with Android 9 on my Samsung S8.  
The app crashes on launch. Same log.

UE 5.6.1  
SDK API installed 34-36.  
Min SDK 26  
Target SDK 35  
NDK Android-26  
Installed NDK SDK 29.0.14206865

Works on Samsung Fold 2 with Android 13.

ChatGPT suggest to check the plugins, which I will do now.

Since the file containing the System.loadLibrary(“android”) is in the intermediate folder and not in the engine template file, it must be generated by something else.

No plugin and no engine file containing the System.loadLibrary(“android”);

Same issue with a fresh project.  
Migrated my project from 5.4.4 to 5.6.1 and updated android sdk, ndk and build tools.

---

<div class="post-metadata">

**Author:** ![dugong\_ZH](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dugong\_ZH](https://forums.unrealengine.com/u/dugong_ZH)\
**Post date:** [October 27, 2025, 12:06pm UTC](https://forums.unrealengine.com/t/java-lang-unsatisfiedlinkerror-shared-library-system-lib64-libandroid-so-already-opened-by-classloader-0x0-cant-open-in-classloader-0x7ba4cbd96c/2665482/3 "2025-10-27T12:06:06Z")

</div>

Although I still don’t know why this issue occurs on some mobile phones, you can filter out the libAndroid.so file added by UE in the engine’s UEDeployAndroid.cs.

UnrealEngine\Engine\Source\Programs\UnrealBuildTool\Platform\Android\UEDeployAndroid.cs

```CS
private void UpdateGameApplication(UnrealArch UnrealArch, string NDKArch, string EngineDir, string UnrealBuildPath,
				bool bJavaPerfettoMarkers, UnrealTargetConfiguration Configuration, string SOName)
		{
			string SourceFilename = Path.Combine(EngineDir, "Build", "Android", "Java", "src", "com", "epicgames", "unreal", "GameApplication.java.template");
			string DestFilename = Path.Combine(UnrealBuildPath, "src", "com", "epicgames", "unreal", "GameApplication.java");

			string GameApplicationImportAdditionsDefault = "";
			if (bJavaPerfettoMarkers)
			{
				GameApplicationImportAdditionsDefault += "import androidx.tracing.Trace;\n";
			}

			// add dependencies to early load during SplashActivity (optional)
			List<string> UnrealDependencies = GetSODependencies(SOName, UnrealArch);
			string GameApplicationEarlyLoad = "";
			if (UnrealDependencies.Count > 0)
			{
				// Make sure these are first then release the lock
				UnrealDependencies.Remove("GLESv3");
				UnrealDependencies.Remove("EGL");
				GameApplicationEarlyLoad += $"Trace.beginSection(\"GLESv3\");\n\t\t\tSystem.loadLibrary(\"GLESv3\");\nTrace.endSection();\n";
				GameApplicationEarlyLoad += $"Trace.beginSection(\"EGL\");\n\t\t\tSystem.loadLibrary(\"EGL\");\nTrace.endSection();\n";
				GameApplicationEarlyLoad += $"\t\t\tProcessSystemInfoLock.unlock();\n";

				foreach (string SharedLibrary in UnrealDependencies)
				{
					GameApplicationEarlyLoad += $"Trace.beginSection(\"{SharedLibrary}\");\n\t\t\tSystem.loadLibrary(\"{SharedLibrary}\");\nTrace.endSection();\n";
				}

```

In Last Foreach，I filtered out android as follow. After that, I can open my app on vivox20A and other phones. I assume that native libraries shouldn’t be open by apps which are already opened by the system. But I didn’t find the evidence to prove that. If anyone knows about it, please let me know(●’◡’●).

```CS
if(SharedLibrary == "android")
{
    continue;
}
GameApplicationEarlyLoad += $"Trace.beginSection(\"{SharedLibrary}\");\n\t\t\tSystem.loadLibrary(\"{SharedLibrary}\");\nTrace.endSection();\n";

```

---

<div class="post-metadata">

**Author:** ![dugong\_ZH](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dugong\_ZH](https://forums.unrealengine.com/u/dugong_ZH)\
**Post date:** [October 27, 2025, 12:08pm UTC](https://forums.unrealengine.com/t/java-lang-unsatisfiedlinkerror-shared-library-system-lib64-libandroid-so-already-opened-by-classloader-0x0-cant-open-in-classloader-0x7ba4cbd96c/2665482/4 "2025-10-27T12:08:29Z")

</div>

Replied on the wrong place. Hope this helps.

---

<div class="post-metadata">

**Author:** ![Tre-Cool-Fox](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tre-cool-fox/32/468473_2.png) [@Tre-Cool-Fox](https://forums.unrealengine.com/u/Tre-Cool-Fox)\
**Post date:** [November 1, 2025, 8:37am UTC](https://forums.unrealengine.com/t/java-lang-unsatisfiedlinkerror-shared-library-system-lib64-libandroid-so-already-opened-by-classloader-0x0-cant-open-in-classloader-0x7ba4cbd96c/2665482/5 "2025-11-01T08:37:17Z")

</div>

Hey,

Thank you! That worked. Took me a while to set up UE from source, but I can confirm the fix works.
