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.
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!