Builds for android fail with Epic plugin for Unity 4.0.2

I’m using Unity version 6000.0.47f1 and the Epic 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 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 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.

BUILD FAILED in 2s

UnityEditor.EditorApplication:Internal_CallDelayFunctions ()

Hi, the 4.1.0 version had an issue with the AAR files that was fixed in version 4.1.1. 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.

https://github.com/JonathanUrosa/eos\_plugin\_for\_unity\_upm There I have made it compatible with Unity 6

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?

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:

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!