Build Failur - Manifest merger failed with multiple errors, see log file

Hi everyone,

I keep failing to build my simple test scene for Android (Using Ubuntu 20.04). It starts really tearing down on my nerves after hours of trying to find the problem.

I freshly installed Unity 2019.4.16f1 with the latest stable AR packages:

  • AR Foundation 2.1.12
  • AR Core XR Plugin 2.1.12
  • AR Subsystems 2.1.3

Under Project Settings > Player:

  • Minimum API Level is set to Android 7.0
  • Multithreaded Rendering is disabled
  • Package Name: GhostAR.demo.ARTest02

Build Settings:

  • My Samsung S10 is in Dev Mode and recognized by Unity

The Scene:
The rest is factory settings and the scene has a simple small cube (0.1, 0.1, 0.1) at origin and the XR Cam

I keep getting about 54 Errors and the message “Build Failur - Manifest merger failed with multiple errors, see log file…”

Editor.log attached.

Please, anyone, what am I doing wrong here?
Is it that difficult to build a simple out-of-the-box AR app for Android?
It is so frustrating, that I feel like giving up my AR dev career before I even get to start it.

Phew, sorry for the rant, but these issues with building keep piling up.

EDIT: Log is too big to attach.

CommandInvokationFailure: Gradle build failed.
/media/gottimperator/Volume/Unity/UnityEditor/2019.4.16f1/Editor/Data/PlaybackEngines/AndroidPlayer/OpenJDK/bin/java -classpath "/media/gottimperator/Volume/Unity/UnityEditor/2019.4.16f1/Editor/Data/PlaybackEngines/AndroidPlayer/Tools/gradle/lib/gradle-launcher-5.1.1.jar" org.gradle.launcher.GradleMain "-Dorg.gradle.jvmargs=-Xmx4096m" "assembleRelease"

stderr[
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
[:arcore_client:] /home/gottimperator/.gradle/caches/transforms-2/files-2.1/acd20f422419817644a0214d29b85c4d/AndroidManifest.xml:30:9-54 Error:
Missing 'package' key attribute on element package at [:arcore_client:] AndroidManifest.xml:30:9-54
[:arcore_client:] /home/gottimperator/.gradle/caches/transforms-2/files-2.1/acd20f422419817644a0214d29b85c4d/AndroidManifest.xml Error:
Validation failed, exiting

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':launcher:processReleaseManifest'.
> Manifest merger failed with multiple errors, see logs

* 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 1s
]
stdout[
> Task :launcher:preBuild UP-TO-DATE
> Task :unityLibrary:preBuild UP-TO-DATE
> Task :unityLibrary:preReleaseBuild UP-TO-DATE
> Task :unityLibrary:checkReleaseManifest UP-TO-DATE
> Task :launcher:prepareLintJar UP-TO-DATE
> Task :unityLibrary:processReleaseManifest
> Task :unityLibrary:compileReleaseAidl NO-SOURCE
> Task :unityLibrary:packageReleaseRenderscript NO-SOURCE
> Task :unityLibrary:compileReleaseRenderscript NO-SOURCE
> Task :unityLibrary:generateReleaseBuildConfig UP-TO-DATE
> Task :unityLibrary:generateReleaseResValues UP-TO-DATE
> Task :unityLibrary:generateReleaseResources UP-TO-DATE
> Task :unityLibrary:packageReleaseResources UP-TO-DATE
> Task :launcher:preReleaseBuild
> Task :launcher:compileReleaseAidl NO-SOURCE
> Task :launcher:compileReleaseRenderscript NO-SOURCE
> Task :launcher:checkReleaseManifest UP-TO-DATE
> Task :launcher:generateReleaseBuildConfig UP-TO-DATE
> Task :launcher:generateReleaseSources UP-TO-DATE
> Task :launcher:mainApkListPersistenceRelease UP-TO-DATE
> Task :launcher:generateReleaseResValues UP-TO-DATE
> Task :launcher:generateReleaseResources UP-TO-DATE
> Task :unityLibrary:generateReleaseRFile UP-TO-DATE
> Task :unityLibrary:prepareLintJar UP-TO-DATE
> Task :unityLibrary:generateReleaseSources UP-TO-DATE
> Task :unityLibrary:javaPreCompileRelease UP-TO-DATE
> Task :launcher:mergeReleaseResources UP-TO-DATE
> Task :unityLibrary:compileReleaseJavaWithJavac UP-TO-DATE
> Task :launcher:createReleaseCompatibleScreenManifests UP-TO-DATE
> Task :unityLibrary:bundleLibCompileRelease
> Task :unityLibrary:prepareLintJarForPublish

> Task :launcher:processReleaseManifest FAILED

Okay after updating all plugins, I get different errors now.
Maybe I am getting closer?

Microsoft (R) Visual C# Compiler version 2.9.1.65535 (9d34608e)
Copyright (C) Microsoft Corporation. All rights reserved.

error CS0006: Metadata file '/media/gottimperator/Volume/Unity/Spielprojekte/AR Test02/Library/PackageCache/com.unity.ext.nunit@1.0.5/net35/unity-custom/nunit.framework.dll' could not be found

Error building Player because scripts have compile errors in the editor

Build completed with a result of 'Failed' in 1 seconds (960 ms)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr) (at /home/bokken/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:197)

UnityEditor.BuildPlayerWindow+BuildMethodException: Error building Player because scripts have compile errors in the editor
at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x002af] in /home/bokken/buildslave/unity/build/Editor/Mono/BuildPlayerWindowBuildMethods.cs:194
at UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x00080] in /home/bokken/buildslave/unity/build/Editor/Mono/BuildPlayerWindowBuildMethods.cs:95
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr) (at /home/bokken/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:197)

Well, I bet I still get the errors from before, but now I don’t even get there anymore.
Never update Unity, it will break everything.

Alright, gave it a new try, new fail:

Library/PackageCache/com.unity.xr.legacyinputhelpers@2.1.6/Runtime/TrackedPoseDriver/TrackedPoseDriver.cs(199,13): error CS1069: The type name 'PoseData' could not be found in the namespace 'UnityEngine.XR.Tango'. This type has been forwarded to assembly 'UnityEngine.ARModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' Enable the built in package 'AR' in the Package Manager window to fix this error.

Library/PackageCache/com.unity.xr.legacyinputhelpers@2.1.6/Runtime/TrackedPoseDriver/TrackedPoseDriver.cs(200,17): error CS0103: The name 'TangoInputTracking' does not exist in the current context

Library/PackageCache/com.unity.xr.legacyinputhelpers@2.1.6/Runtime/TrackedPoseDriver/TrackedPoseDriver.cs(200,91): error CS0103: The name 'PoseStatus' does not exist in the current context

Error building Player because scripts had compiler errors

Build completed with a result of 'Failed' in 9 seconds (8526 ms)
UnityEditor.BuildPlayerWindow:BuildPlayerAndRun() (at /home/bokken/buildslave/unity/build/Editor/Mono/BuildPlayerWindow.cs:136)

UnityEditor.BuildPlayerWindow+BuildMethodException: 4 errors
  at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x002af] in /home/bokken/buildslave/unity/build/Editor/Mono/BuildPlayerWindowBuildMethods.cs:194
  at UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x00080] in /home/bokken/buildslave/unity/build/Editor/Mono/BuildPlayerWindowBuildMethods.cs:95
UnityEditor.BuildPlayerWindow:BuildPlayerAndRun() (at /home/bokken/buildslave/unity/build/Editor/Mono/BuildPlayerWindow.cs:136)

The XR Legacy Input Helper Plugin is already 2.1.6 and cannot be further updated. Seems to be a Linux-only error.

Okay, have given up andtrying Unity 2020.1 now. If that won’t work, well nothing left to try then and actually reaching the end of my patience with Unity under Linux.

To everyone with the same struggle: Install Unity 2020.1 and it will work just as is. Thanks god, it was all not in vain!

Getting the same build error “Task :launcher:processReleaseManifest FAILED” on Unity 2019.4.18f1. Any solution besides upgrading the project?

It is happening due to mismatch or unsupported version of AR Foundation or ARCore Plugin. Check that the version of AR Foundation and ARCore plugin is same. Also, check that these packages are supported by the Unity Editor version in use.