# Builds for android fail with Epic plugin for Unity 4.0.2 

**URL:** <https://forums.unrealengine.com/t/builds-for-android-fail-with-epic-plugin-for-unity-4-0-2/2858348>\
**Category:** Multiplayer\
**Tags:** epic-online-services, question\
**Created:** [July 30, 2025, 6:45pm UTC](https://forums.unrealengine.com/t/builds-for-android-fail-with-epic-plugin-for-unity-4-0-2/2858348 "2025-07-30T18:45:58Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [July 30, 2025, 6:45pm UTC](https://forums.unrealengine.com/t/builds-for-android-fail-with-epic-plugin-for-unity-4-0-2/2858348/1 "2025-07-30T18:45:58Z")

</div>

I’m using **Unity version 6000.0.47f1** and the E **pic plugin for Unity 4.0.2** , and when I try to build for Android I get the following error:

FAILUREt: Build failed with an excepion.

\* What went wrong:

A problem occurred configuring project ‘:unityLibrary:eos\_dependencies.androidlib’.

\> Could not create an instance of type com.android.build.api.variant.impl.LibraryVariantBuilderImpl.

\> Namespace not specified. Specify a namespace in the module’s build file: D:\Desarrollo\Proyects\Borrable\CBSPractica\PracticaCBS\Library\Bee\Android\Prj\IL2CPP\Gradle\unityLibrary\eos\_dependencies.androidlib\build.gradle. See [https://d.android.com/r/tools/upgrade-assistant/set-namespace](https://d.android.com/r/tools/upgrade-assistant/set-namespace) for information about setting the namespace.

If you’ve specified the package attribute in the source AndroidManifest.xml, you can use the AGP Upgrade Assistant to migrate to the namespace value in the build file. Refer to [https://d.android.com/r/tools/upgrade-assistant/agp-upgrade-assistant](https://d.android.com/r/tools/upgrade-assistant/agp-upgrade-assistant) for general information about using the AGP Upgrade Assistant.

\* Try:

\> Run with --stacktrace option to get the stack trace.

\> Run with --info or --debug option to get more log output.

\> Run with --scan to get full insights.

\> Get more help at [https://help.gradle.org](https://help.gradle.org).

BUILD FAILED in 2s

UnityEditor.EditorApplication:Internal\_CallDelayFunctions ()

---

<div class="post-metadata">

**Author:** ![JskT01xa](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JskT01xa](https://forums.unrealengine.com/u/JskT01xa)\
**Post date:** [August 27, 2025, 11:41pm UTC](https://forums.unrealengine.com/t/builds-for-android-fail-with-epic-plugin-for-unity-4-0-2/2858348/2 "2025-08-27T23:41:10Z")

</div>

Hi, the 4.1.0 version had an issue with the AAR files that was fixed in version [4.1.1](https://github.com/EOS-Contrib/eos_plugin_for_unity/releases/tag/untagged-68ce5d861c8ba21a309a). You can update it here. My apologies for the inconvenience.

**An important note:** the APK does not yet have official support for Unity 6. We expect to provide this support soon. Best regards.

---

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [September 15, 2025, 12:38pm UTC](https://forums.unrealengine.com/t/builds-for-android-fail-with-epic-plugin-for-unity-4-0-2/2858348/3 "2025-09-15T12:38:22Z")

</div>

[https://github.com/JonathanUrosa/eos\_plugin\_for\_unity\_upm](https://github.com/JonathanUrosa/eos%5C_plugin%5C_for%5C_unity%5C_upm) There I have made it compatible with Unity 6

---

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [September 12, 2025, 10:33pm UTC](https://forums.unrealengine.com/t/builds-for-android-fail-with-epic-plugin-for-unity-4-0-2/2858348/4 "2025-09-12T22:33:09Z")

</div>

Hi, I’m facing the same problem in Unity 6 and version 4.1.1 of the EOS plugin, the unity 6 support is planned to be provided in the short term?

---

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [September 17, 2025, 8:15pm UTC](https://forums.unrealengine.com/t/builds-for-android-fail-with-epic-plugin-for-unity-4-0-2/2858348/5 "2025-09-17T20:15:01Z")

</div>

~~THANK YOU! Our builds were broken after upgrading to unity 6, this worked for us.~~

~~(I just copied your gradle and android manifest changes)~~

~~Edit: I spoke too soon, seems to just be a different error for us now too:~~

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/f/28f6b465e4e04a60dc3905bafaabe814c0ce1e3c.png)

```auto
FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':launcher:mergeReleaseNativeLibs'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.MergeNativeLibsTask$MergeNativeLibsTaskWorkAction
   > 2 files found with path 'lib/arm64-v8a/libc++_shared.so' from inputs:
      - <project>\GOTY\Library\Bee\Android\Prj\IL2CPP\Gradle\unityLibrary\build\intermediates\library_jni\release\copyReleaseJniLibsProjectOnly\jni\arm64-v8a\libc++_shared.so
      - C:\Users\Coty\.gradle\caches\8.11\transforms\94d211353d93e042aab41ef6e863db89\transformed\jetified-UnityHelpers_Android-debug\jni\arm64-v8a\libc++_shared.so
     If you are using jniLibs and CMake IMPORTED targets, see
     https://developer.android.com/r/tools/jniLibs-vs-imported-targets

```

Edit 2:

I see, I missed something in your commit. You modified the file UnityHelpers\_Android-debug.aar to delete the shared library inside. I did the same locally, and that fixed building for me. Nice!
