Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sweet Alert Dialog ic_launcer is packaged in version 1.3 and causing compiling issues

Tags:

android

When including Sweet Alert dialog in the project, I encountered an issue which caused comilation issues, due to a duplicated ic_launcher dialog which was packaged in the library

Error:Execution failed for task ':app:processDebugManifest'.
> Manifest merger failed : Attribute application@icon value=(@mipmap/ic_launcher) from AndroidManifest.xml:7:9-43
    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:5:5-22:19 to override.
like image 924
Mushtaq Jameel Avatar asked May 13 '16 18:05

Mushtaq Jameel


1 Answers

The Solution was pretty simple, the solution is to add these two lines into the AndroidManifest.xml file:

xmlns:tools="http://schemas.android.com/tools" //manifest element 
tools:replace="android:icon"  //application element
like image 148
Mushtaq Jameel Avatar answered Oct 26 '22 19:10

Mushtaq Jameel