Question Detail

Gradle : Execution failed for task 'app:processDebugManifest' - drawable/ic_launcher

6 years ago Views 1804 Visit Post Reply

Error:Execution failed for task ':app:processDebugManifest'.
> Manifest merger failed : Attribute application@icon value=(@drawable/app_logo) from AndroidManifest.xml:11:9-37
    is also present at [com.pnikosis:materialish-progress:1.0] AndroidManifest.xml:13:9-45 value=(@drawable/ic_launcher).
    Suggestion: add 'tools:replace="android:icon"' to <application> element at AndroidManifest.xml:9:5-51:19 to override.


Thread Reply

Hemant Sharma

- 6 years ago

Found the solution to this problem this error occurs when your gradle and Manfist SDK Version Different:
 

1.) Gradle assembles - info gave me the hint that the Manifests have different SDK Versions and cannot be merged.

I needed to edit my Manifests and build.gradle file and everything worked again.


2.) Sometimes it occurs when you use customize app icon in Manifest so change in Manifest files Application Tag

<application
    android:allowBackup="true"
    android:icon="@drawable/app_icon"
    android:label="@string/app_name"
    android:supportsRtl="true"
    android:theme="@style/AppTheme"
    android:hardwareAccelerated="true"
    android:largeHeap="true"
    android:roundIcon="@drawable/app_icon"
    tools:replace="android:icon">