Cannot merge android manifests

I am making a game that uses google admob, but when building the apk, I get an erro several errors:

  1. Error: Error while saving blame file, build will continue
    Error: The prefix “tools” for attribute “tools:overrideLibrary” associated with an element type “uses-sdk” is not bound.
    UnityEditor.HostView:OnGUI()

  2. 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()

And also here’s the AndroidManifest.xml in plugins/android:

Can anybody help me?

What Unity version are you working with? I believe this has to do with the build-tools version you have installed which uses a new manifest merger, which means that your AndroidManifest will be “broken”.

See more info in this link: Unity Issue Tracker - [Android] Unity fails merging Android manifest with sdk tools 26.0.2

Possible solutions for this issue:

  1. Downgrade your version of Android build tools. See this 1 on how to do that.
  2. Modify your Manifest to match the new namespace declaration