Android Build Gradle error :launcher:mergeReleaseJavaResource

Android Build fails with ':launcher:mergeReleaseJavaResource' error

Some of HOMA's latest SDKs do require some modifications in your build settings.

If you are experiencing the followin error upon building for Android:

* What went wrong:
Execution failed for task ':launcher:mergeReleaseJavaResource'.
> A failure occurred while executing$ActionFacade
> More than one file was found with OS independent path 'META-INF/kotlinx_coroutines_core.version'.

The proposed fix is to enable Gradle templates build pipeline


In Unity > Player Settings > Android > Publishing Settings, enable the following settings:

  • Custom Main Gradle Template
  • Custom Gradle Properties Template

Once enable, force resolve Android dependencies through Assets > External Dependency Manager > Android Resolver > Force Resolve and try a new build.