Solution for: Unable to merge android manifests. See the Console for more details.

Hi. First time so maybe obvious but I can’t find a solution searching other posts.

I’m getting the error when trying to build:

Unable to merge android manifests. See
the Console for more details.
I think I have aligned the api numbers in the manifest and player settings

This is from the console:

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.HostView:OnGUI()

Any ideas?
Thank you

i have the same probleme can you please help me

also have this problem

Get the last version of Android Studio (to get the android sdk)
And get the last Java SDK version.
Cheers.

@That1GamerGuy @mouadbout @luunke
I have been struggling on this for like a couple days, I just figured it out what you do is remove the androidmanifest.xml file and the android.meta file and the androidmanifest-main.xml file i think its called from your project. Then you build, it will ask you to make name a bundle identifier in the player settings so do that, and build again or you could name your bundle identifier and it will build once. What happens is that unity will create its own files and will work. Make sure you guys make you save the above files as backup just in case it doesn’t work. Let me know what happens I hope it worked.,Hey guys finally figured it out, what you have to do is remove the androidmanifestmain.xml file and android.meta file and the androidmanifest.xml file from your project files and build. Unity will automatically creates its own files. I just figured it out like right now, and it worked.