ExpandableLayout icon indicating copy to clipboard operation
ExpandableLayout copied to clipboard

Please remove ic_launchers

Open MahdiAstanei opened this issue 10 years ago • 6 comments

the icons in the lib is cause of error: "Gradle finished with non-zero exit value 1"

MahdiAstanei avatar Dec 09 '15 15:12 MahdiAstanei

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

Manifest merger failed : Attribute application@icon value=(@mipmap/ic_launcher) from AndroidManifest.xml:22:9-43 is also present at [com.github.traex.expandablelayout:library:1.2.2] AndroidManifest.xml:13:9-45 value=(@drawable/ic_launcher). Suggestion: add 'tools:replace="android:icon"' to element at AndroidManifest.xml:19:5-55:19 to override.

darklordqnct avatar Dec 10 '15 04:12 darklordqnct

+1

You can workaround this by adding replace="android:icon" to the manifest like the following

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    package="....">

    <application
        android:allowBackup="true"
        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_name"
        android:supportsRtl="true"
        android:theme="@style/AppTheme"
        tools:replace="android:icon"
        >
        ....
    </application>

</manifest>

But as you said it should be there in the first place so please remove it @traex

dasheck0 avatar Dec 12 '15 15:12 dasheck0

+1

teodorpenkov avatar Jan 22 '16 14:01 teodorpenkov

it solved my problem by dasheck0's method

flyingpic avatar Mar 10 '16 06:03 flyingpic

Glad that it helped someone. But as all of us already mentioned it should be removed so that you donÄt need this workaround.

dasheck0 avatar Mar 10 '16 08:03 dasheck0

+1

yanrubi avatar Dec 30 '16 03:12 yanrubi