ExpandablePanel icon indicating copy to clipboard operation
ExpandablePanel copied to clipboard

Remove ic_launcher.png

Open jrobinson3k1 opened this issue 9 years ago • 5 comments

With Android Gradle Plugin 1.2, I'm getting an error claiming a duplicate file:

/workspace/project/app/build/intermediates/res/production/debug/drawable-hdpi-v4/ic_launcher.png: error: Duplicate file.
/workspace/project/app/build/intermediates/res/production/debug/drawable-hdpi/ic_launcher.png: Original is here. The version qualifier may be implied.

This is happening due to this library declaring ic_launcher.png. I can solve this on my project by renaming ic_launcher, but there's really no reason for a library to have this drawable anyway.

jrobinson3k1 avatar Apr 24 '15 04:04 jrobinson3k1

I had not any trouble compiling the project back then, but i will accept a PR if you want to delete theese icons as they were automatically generated by the IDE at the beginning!

JorgeCastilloPrz avatar Apr 24 '15 06:04 JorgeCastilloPrz

Created a pull request @JorgeCastilloPrz . I ran the sample app to make sure everything still worked fine.

jrobinson3k1 avatar Apr 27 '15 17:04 jrobinson3k1

If you still see this issue, add:

tools:replace="android:icon"

to application tag in AndroidManifest.xml

Voyz avatar Aug 02 '16 14:08 Voyz

Error:Execution failed for task ':app:processDebugManifest'.
> Manifest merger failed : Attribute application@icon value=(@mipmap/ic_launcher) from AndroidManifest.xml:26:5-39
    is also present at [com.github.jorgecastilloprz:expandablepanel:1.0.4] AndroidManifest.xml:13:9-45 value=(@drawable/ic_launcher).
    Suggestion: add 'tools:replace="android:icon"' to <application> element at AndroidManifest.xml:23:3-160:17 to override.

adding tools:replace="android:icon" does nothing does it work for you @JorgeCastilloPrz ? I'm on android studio 2.2 beta 2

AndroidGecko avatar Aug 25 '16 08:08 AndroidGecko

:) http://stackoverflow.com/questions/25981156/tools-replace-not-replacing-in-android-manifest after changing order of compile it works -> ¯_(ツ)_/¯

AndroidGecko avatar Aug 25 '16 11:08 AndroidGecko