Android studio Gradle icon error, Manifest Merger -


i keep seeing message , not sure how solve good.

error:(43, 9) attribute application@icon value=(@drawable/new_app_icon) androidmanifest.xml:43:9     present @ com.github.erizet.signala:signala-longpolling:0.20:7:18 value=(@drawable/ic_launcher)     suggestion: add 'tools:replace="android:icon"' <application> element @ androidmanifest.xml:40:5 override :openbook:processdebugmanifest failed error:execution failed task ':openbook:processdebugmanifest'. > manifest merger failed multiple errors, see logs 

tried adding android:replace="android:icon" manifest icon.

i tried deleting android:icon="@drawable/ic_launcher library keeps coming when build because imported maven

any ideas ?

it seems fault of mainfest merger tool gradle.

http://tools.android.com/tech-docs/new-build-system/user-guide/manifest-merger

solved adding manifest tag xmlns:tools="http://schemas.android.com/tools"

then added tools:replace="android:icon,android:theme" application tag

this tells merger use manifest icon , theme , not of other libraries

hope helps thanks


Comments