Q:

Android Studio 6.0 merger fail

Just updated to the latest version of Android Studio and i get this error in the AndroidManifest file

Manifest merger failed : Attribute application@icon value=(@drawable/project_launcher_icon) from AndroidManifest.xml:48:9
      is also present at com.github.anupcowkur:reservoir:1.1.1:6:45 value=(@drawable/ic_launcher)
      Suggestion: add 'tools:replace="icon"' to  element at AndroidManifest.xml:44:5 to override

I tried adding tools:replace="@drawable/ic_drawer" in my manifest  but i get this error:
Error:(44, 5) tools:replace specified at line:44 for attribute tools:drawable/ic_drawer, but no new value specified

Any ideas?

A:

Following Android Studio's suggestion and adding the following attribute tools:replace="icon" should allow it to build your app successfully, without resorting to using the old manifest merger (which isn't a very forward-looking solution indeed).
Of course, you'll first have to declare the namespace "tools" in order to use it:
 <manifest xmlns:android="http://schemas.android.com/apk/res/android"
              xmlns:tools="http://schemas.android.com/tools"
              package="com.sample.app" >

A:

You should add tools:replace="icon", just like the error message says. 
Additional attributes can be replaced using the syntax tools:replace="icon,name,theme"

A:

look here:
All markers belong to the Android tools namespace, therefore you must declare the namespace in any AndroidManifest.xml containing at least one marker :
xmlns:tools="http://schemas.android.com/tools"
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.android.tests.flavorlib.app"
**xmlns:tools="http://schemas.android.com/tools"**>

<application
    android:icon="@drawable/icon"
    android:label="@string/app_name"
   **tools:replace=”icon, label”**/>
</manifest>

you should add xlms:tools and tools:replace those two lines in manifest file.

