Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove ic_launcher.png #4

Open
jrobinson3k1 opened this issue Apr 24, 2015 · 5 comments · May be fixed by #5
Open

Remove ic_launcher.png #4

jrobinson3k1 opened this issue Apr 24, 2015 · 5 comments · May be fixed by #5

Comments

@jrobinson3k1
Copy link

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.

@JorgeCastilloPrz
Copy link
Owner

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!

@jrobinson3k1 jrobinson3k1 linked a pull request Apr 27, 2015 that will close this issue
@jrobinson3k1
Copy link
Author

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

@Voyz
Copy link

Voyz commented Aug 2, 2016

If you still see this issue, add:

tools:replace="android:icon"

to application tag in AndroidManifest.xml

@AndroidGecko
Copy link

AndroidGecko commented Aug 25, 2016

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants