erizet / SignalA

A SignalR client for Android.
Apache License 2.0
193 stars 90 forks source link

Error regarding @drawable/ic_launcher #52

Open engmsaleh opened 10 years ago

engmsaleh commented 10 years ago

When integrate the Maven dependency of Signal A into my Android studio project and build I got the following error

Error:(21, 9) Execution failed for task ':app:processDebugManifest'.
> Manifest merger failed : Attribute application@icon value=(@drawable/icon) from AndroidManifest.xml:21:9
    is also present at com.github.erizet.signala:signala-longpolling:0.20:7:18 value=(@drawable/ic_launcher)
    Suggestion: add 'tools:replace="android:icon"' to <application> element at AndroidManifest.xml:19:5 to override
engmsaleh commented 10 years ago

I have found a solution here http://stackoverflow.com/questions/24506800/android-studio-gradle-icon-error-manifest-merger

Answer @shimi_tap

Solved it by adding to my manifest tag xmlns:tools="http://schemas.android.com/tools"

Then added tools:replace="android:icon,android:theme" to the application tag