0

Hi,

when I want to build the app, I am seeing this issue. What may cause the error. I could not even build the sample. Thanks.

 

C:\Users\...\Temp\StagingArea\AndroidManifest-main.xml:4:58-91 Error: Attribute application@icon value=(@drawable/app_icon) from AndroidManifest-main.xml:4:58-91 is also present at AndroidManifest.xml:6:18-47 value=(@drawable/icon). Suggestion: add 'tools:replace="android:icon"' to <application> element at AndroidManifest-main.xml:4:3-24:17 to override. UnityEditor.BuildPlayerWindow:BuildPlayerAndRun()

 

 

AndroidSDKToolsException: Unable to merge android manifests. See the Console for more details. UnityEditor.Android.AndroidSDKTools.DetectErrorsAndWarnings (System.String logMessages, System.String errorMsg) UnityEditor.Android.AndroidSDKTools.RunCommandInternal (System.String javaExe, System.String sdkToolsDir, System.String[] sdkToolCommand, Int32 memoryMB, System.String workingdir, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) UnityEditor.Android.AndroidSDKTools.RunCommandSafe (System.String javaExe, System.String sdkToolsDir, System.String[] sdkToolCommand, Int32 memoryMB, System.String workingdir, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) UnityEditor.Android.AndroidSDKTools.RunCommand (System.String[] sdkToolCommand, Int32 memoryMB, System.String workingdir, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) UnityEditor.Android.AndroidSDKTools.RunCommand (System.String[] sdkToolCommand, System.String workingdir, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) UnityEditor.Android.AndroidSDKTools.RunCommand (System.String[] sdkToolCommand, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) UnityEditor.Android.AndroidSDKTools.MergeManifests (System.String target, System.String mainManifest, System.String[] libraryManifests, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit) UnityEditor.Android.PostProcessor.Tasks.GenerateManifest.MergeManifests (UnityEditor.Android.PostProcessor.PostProcessorContext context, System.String targetManifest, System.String mainManifest) UnityEditor.Android.PostProcessor.Tasks.GenerateManifest.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context) UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) UnityEditor.BuildPlayerWindow:BuildPlayerAndRun()

Antoniacummins answered
    0
    htlxyz 1.99K Rep.

    seem like there have mutil AndroidManifest.xml,  and they have @drawable/app_icon both.

    can't find the conflict AndroidManifest.xml from log, you can search in unity asset folder, and remove @drawable/app_icon in one AndroidManifest.xml

    htlxyz answered

      Question stats

      • Active
      • Views1004 times
      • Answers1 answer
      • Followers1 follower

      Categories