CommandInvokationFailure: Gradle build failed. Unity Build
Note: D:\Tahir\New\ALL\Temp\gradleOut\unityLibrary\src\main\java\com\unity3d\player\UnityPlayerActivity.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. [:com.facebook.android.audience-network-sdk-6.4.0:] C:\Users\HP.gradle\caches\transforms-2\files-2.1\fbc1e4faba4192a1e90fb232d4073c82\AndroidManifest.xml:5:5-51 Error: Missing 'package' key attribute on element package at [:com.facebook.android.audience-network-sdk-6.4.0:] AndroidManifest.xml:5:5-51 [:com.facebook.android.audience-network-sdk-6.4.0:] C:\Users\HP.gradle\caches\transforms-2\files-2.1\fbc1e4faba4192a1e90fb232d4073c82\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 12s Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
UnityEngine.GUIUtility:ProcessEvent (int,intptr)
CommandInvokationFailure: Gradle build failed. C:\Program Files\Java\jdk1.8.0_191\bin\java.exe -classpath "C:\gradle-5.5.1-all\gradle-5.5.1\lib\gradle-launcher-5.5.1.jar" org.gradle.launcher.GradleMain "-Dorg.gradle.jvmargs=-Xmx4096m" "assembleRelease"
stderr[ Note: D:\ADS\Ads\Ads\Temp\gradleOut\unityLibrary\src\main\java\com\unity3d\player\UnityPlayerActivity.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. [:com.facebook.android.audience-network-sdk-6.4.0:] C:\Users\HP.gradle\caches\transforms-2\files-2.1\fbc1e4faba4192a1e90fb232d4073c82\AndroidManifest.xml:5:5-51 Error: Missing 'package' key attribute on element package at [:com.facebook.android.audience-network-sdk-6.4.0:] AndroidManifest.xml:5:5-51 [:com.facebook.android.audience-network-sdk-6.4.0:] C:\Users\HP.gradle\caches\transforms-2\files-2.1\fbc1e4faba4192a1e90fb232d4073c82\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 12s Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8 ] stdout[
Task :unityLibrary:preBuild UP-TO-DATE Task :launcher:preBuild UP-TO-DATE Task :unityLibrary:preReleaseBuild UP-TO-DATE Task :unityLibrary:checkReleaseManifest Task :launcher:prepareLintJar Task :unityLibrary:processReleaseManifest Task :unityLibrary:compileReleaseAidl NO-SOURCE Task :unityLibrary:packageReleaseRenderscript NO-SOURCE Task :unityLibrary:compileReleaseRenderscript NO-SOURCE Task :unityLibrary:generateReleaseBuildConfig Task :unityLibrary:generateReleaseResValues Task :unityLibrary:generateReleaseResources Task :unityLibrary:packageReleaseResources Task :launcher:preReleaseBuild Task :launcher:compileReleaseAidl NO-SOURCE Task :launcher:compileReleaseRenderscript NO-SOURCE Task :launcher:checkReleaseManifest Task :launcher:generateReleaseBuildConfig Task :launcher:generateReleaseSources Task :launcher:mainApkListPersistenceRelease Task :launcher:generateReleaseResValues Task :launcher:generateReleaseResources Task :unityLibrary:generateReleaseRFile Task :unityLibrary:prepareLintJar Task :unityLibrary:generateReleaseSources Task :unityLibrary:javaPreCompileRelease Task :launcher:mergeReleaseResources Task :launcher:createReleaseCompatibleScreenManifests
Task :unityLibrary:compileReleaseJavaWithJavac
Task :launcher:processReleaseManifest FAILED
See http://g.co/androidstudio/manifest-merger for more information about the manifest merger.
Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0. Use '--warning-mode all' to show the individual deprecation warnings. See https://docs.gradle.org/5.5.1/userguide/command_line_interface.html#sec:command_line_warnings 18 actionable tasks: 18 executed ] exit code: 1 UnityEditor.Android.Command.WaitForProgramToRun (UnityEditor.Utils.Program p, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at :0) UnityEditor.Android.Command.Run (System.Diagnostics.ProcessStartInfo psi, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at :0) UnityEditor.Android.Command.Run (System.String command, System.String args, System.String workingdir, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at :0) UnityEditor.Android.AndroidJavaTools.RunJava (System.String args, System.String workingdir, System.Action`1[T] progress, System.String error) (at :0) UnityEditor.Android.GradleWrapper.Run (UnityEditor.Android.AndroidJavaTools javaTools, System.String workingdir, System.String task, System.Action`1[T] progress) (at :0) Rethrow as GradleInvokationException: Gradle build failed UnityEditor.Android.GradleWrapper.Run (UnityEditor.Android.AndroidJavaTools javaTools, System.String workingdir, System.String task, System.Action`1[T] progress) (at :0) UnityEditor.Android.PostProcessor.Tasks.BuildGradleProject.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at :0) UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at :0) Rethrow as BuildFailedException: Exception of type 'UnityEditor.Build.BuildFailedException' was thrown. UnityEditor.Android.PostProcessor.CancelPostProcess.AbortBuild (System.String title, System.String message, System.Exception ex) (at :0) UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at :0) UnityEditor.Android.PostProcessAndroidPlayer.PostProcess (UnityEditor.BuildTarget target, System.String stagingAreaData, System.String stagingArea, System.String playerPackage, System.String installPath, System.String companyName, System.String productName, UnityEditor.BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.Build.Reporting.BuildReport report) (at :0) UnityEditor.Android.AndroidBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at :0) UnityEditor.PostprocessBuildPlayer.Postprocess (UnityEditor.BuildTargetGroup targetGroup, UnityEditor.BuildTarget target, System.String installPath, System.String companyName, System.String productName, System.Int32 width, System.Int32 height, UnityEditor.BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.Build.Reporting.BuildReport report) (at :0) UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
Your answer
Follow this Question
Related Questions
Unable to merge android manifests 1 Answer
Unable to convert classes into dex format 12 Answers
CommandInvokationFailure while using *.aar file in unity project 1 Answer
CommandInvokationFailure: Unable to merge android manifests. See the Console for more details. 1 Answer
Android Downloads Folder 2 Answers