coomar2841 / image-chooser-library

An Easy Image/Video Chooser Library for your Android Apps
646 stars 193 forks source link

Manifest merger fails due to app icon #70

Closed Transformat closed 9 years ago

Transformat commented 9 years ago

Error:(52, 9) Execution failed for task ':app:processDebugManifest'.

Manifest merger failed : Attribute application@icon value=(@drawable/app_icon) from AndroidManifest.xml:52:9 is also present at com.kbeanie:image-chooser-library:1.4.3:13:9 value=(@drawable/ic_launcher) Suggestion: add 'tools:replace="android:icon"' to element at AndroidManifest.xml:49:5 to override

tools:replace="android:icon" not working

coomar2841 commented 9 years ago

That's strange. I haven't had any problems before. Will check this.

Jaymassena commented 9 years ago

Saw the same thing. Renamed my icon resource as a temp work around.

zmingchun commented 9 years ago

As the Android studio say , we should add

tools:replace="android:icon 

in out project AndroidManifest.xml,before use tools tag,you should add

          xmlns:tools="http://schemas.android.com/tools"

in manifest tag.

Above work for me.

Transformat commented 9 years ago

I think the original developer should remove the app icon line from manifest of the library itself. It will never cause any issues then.

desgraci commented 9 years ago

using compile 'com.kbeanie:image-chooser-library:1.4.3@aar', problem persist " is also present at com.kbeanie:image-chooser-library:1.4.3:13:9 value=(@drawable/ic_launcher) Suggestion: add 'tools:replace="android:icon"' to element at AndroidManifest.xml:9:5 to override"