Unable to use android:icon="@mipmap/ic_launcher" in Manifest after play services 7.5.0

Vikash Parajuli picture Vikash Parajuli · Jun 3, 2015 · Viewed 21k times · Source

I have recently update play services using dependencies
compile 'com.google.android.gms:play-services:7.5.0'
My app icon launcher is in @mipmap/ic_launcher" but this is showing error in AndroidManifest.xml. Should i again place this icon in drawable or else ?
Help me to find out the solution.

UPDATE: Here is Messages from Android studio

Error:(17, 9) Execution failed for task ':app:processDebugManifest'.
> Manifest merger failed : Attribute application@icon value=(@mipmap/ic_launcher) from AndroidManifest.xml:17:9
    is also present at com.pnikosis:materialish-progress:1.0:13:9 value=(@drawable/ic_launcher)
    Suggestion: add 'tools:replace="android:icon"' to <application> element at AndroidManifest.xml:14:5 to override
Error:(17, 9) Attribute application@icon value=(@mipmap/ic_launcher) from AndroidManifest.xml:17:9
D:\3cworkspace\PeakPerformance\app\src\main\AndroidManifest.xml

Answer

satyapol picture satyapol · Jun 10, 2015

Add following line to the application tag

tools:replace="android:icon"

Also import xmlns:tools="http://schemas.android.com/tools" to manifest file.