pedant / sweet-alert-dialog

SweetAlert for Android, a beautiful and clever alert dialog
http://pedant.github.io
7.26k stars 1.94k forks source link

Manifest merger failed : Attribute application@icon value=(@mipmap/ic_launcher) #75

Open felipecaldas opened 8 years ago

felipecaldas commented 8 years ago

Hi all,

I believe the issue in the subject is already known on version 1.3 It does not exist on version 1.2... But I need the progress bar, which exists on 1.3....

Any suggestions?

Thank you

Error:Execution failed for task ':app:processDebugManifest'.

Manifest merger failed : Attribute application@icon value=(@mipmap/ic_launcher) from AndroidManifest.xml:24: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 element at AndroidManifest.xml:21:5-76:19 to override.

bariki commented 8 years ago

It happen to me too, Please help anyone who can

adelta commented 8 years ago

resolve the problem here http://stackoverflow.com/questions/30393726/imported-projects-give-error-in-android-studio-1-2-1-1

viralypatel commented 8 years ago

this needs a fix. it's appears to be a nice library otherwise. But, changing stuff in the project as a hack to accommodate the library is not a welcome thing.

viralypatel commented 8 years ago

Fix found here: https://github.com/pedant/sweet-alert-dialog/issues/33

longxianlin commented 8 years ago

<application android:name=".MainApplication" android:allowBackup="true" android:icon="@mipmap/ic_launcher" tools:replace="android:icon,android:theme" android:label="@string/app_name" android:supportsRtl="true" android:theme="@style/Theme.AppCompat.Light">

then work..

endromeda commented 8 years ago

I am using Android Studio 2.1,2 and i have tried all the solution you given here but still not able to solve my problem.

Error:Execution failed for task ':app:processDebugManifest'.

Manifest merger failed : Attribute application@icon value=(@drawable/abc_launcher) from AndroidManifest.xml:51:9-46 is also present at [My-booking-android:countryPicker:unspecified] AndroidManifest.xml:13:9-45 value=(@drawable/ic_launcher). Suggestion: add 'tools:replace="android:icon"' to element at AndroidManifest.xml:47:5-172:19 to override.

Please help me to solve the issue. i have already added xmlns:tools="http://schemas.android.com/tools" in manifest file and tools:replace="android:icon" in manifest file. Thanks in advance

verticalakash commented 7 years ago

Add this to your manifest 'tools:replace="android:icon"

marvinhosea commented 7 years ago

just add xmlns:tools="http://schemas.android.com/tools" on the manifest xml root then add the following tools:replace="android:icon,android:label" that will work