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