Android Studio error “Manifest merger failed with multiple errors, see logs” solution

Error:Execution failed for task 'XXX :processDebugManifest'. > Manifest merger failed with multiple errors, see logs
problem solution.

added a new item as a dependency to the original project today, after a series of configurations in the Manifest, this error occurs for gradle.
Why
The Gradle plug-in for AS enables the Manifest Merger Tool by default, and if the same attributes AS the main project are also defined in the Library project (such AS the default-generated Android:icon and Android: Theme), then the merge fails and the error is reported.
solution
In the manifest is joined on the root tag XMLNS: tools = "http://schemas.android.com/tools" , and in the manifest. The application of XML tags add tools: replace = "icon, label, the theme" (multiple attributes, separated, as the case may be). Or tools: replace = "the android: icon, android: label, android: theme"
http://tools.android.com/tech-docs/new-build-system/user-guide/manifest-merger official method for reference

Read More: