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

Duplicate Resources #18

Closed
adrianrdzv opened this issue Mar 22, 2018 · 6 comments
Closed

Duplicate Resources #18

adrianrdzv opened this issue Mar 22, 2018 · 6 comments
Labels
invalid This doesn't seem right

Comments

@adrianrdzv
Copy link

Seems that the generated icons conflict with the original icons:
I get the following error:

[mipmap-mdpi-v4/ic_launcher] /Users/adrian/Repos/client/app/src/appMobileDebug/res/mipmap-mdpi/ic_launcher.png        [mipmap-mdpi-v4/ic_launcher] /Users/adrian/Repos/client/app/build/generated/ribbonizer/res/appMobileDebug/mipmap-mdpi/ic_launcher.png: Error: Duplicate resources
@akaita
Copy link
Owner

akaita commented Mar 23, 2018

I can clearly read ribbonizer in the path.
Are you sure you are reporting in the correct repo?

@akaita akaita added the invalid This doesn't seem right label Mar 23, 2018
@adrianrdzv
Copy link
Author

adrianrdzv commented Mar 23, 2018

Yes. Sorry I must have copied of when I tried with ribbonizer but it happens on both libraries. I'm not sure what is the cause of this issue. I'm using gradle plugin 3.0.1 and gradle 4.1 but I downgraded to the ones of the sample app and it still shows that error, so not related to these versions.

@akaita
Copy link
Owner

akaita commented Mar 24, 2018

Could you provide the error messages?

@akaita
Copy link
Owner

akaita commented Mar 27, 2018

Closing due to lack of response.
Please reopen if you find you can provide the info required to confirm the issue.

@akaita akaita closed this as completed Mar 27, 2018
@anvob
Copy link

anvob commented Jul 18, 2019

I have the same problem with duplicate resources in one of buildType variants

Error message:

mergeProdDebugResources FAILED
[mipmap-xhdpi-v4/ic_launcher_foreground] /home/user/app1/src/prodDebug/res/mipmap-xhdpi/ic_launcher_foreground.png [mipmap-xhdpi-v4/ic_launcher_foreground] /home/user/app1/build/generated/easylauncher/res/prodDebug/mipmap-xhdpi/ic_launcher_foreground.png: Error: Duplicate resources
[mipmap-xhdpi-v4/ic_launcher] /home/user/app1/src/prodDebug/res/mipmap-xhdpi/ic_launcher.png [mipmap-xhdpi-v4/ic_launcher] /home/user/app1/build/generated/easylauncher/res/prodDebug/mipmap-xhdpi/ic_launcher.png: Error: Duplicate resources
[mipmap-xhdpi-v4/ic_launcher_round] /home/user/app1/src/prodDebug/res/mipmap-xhdpi/ic_launcher_round.png [mipmap-xhdpi-v4/ic_launcher_round] /home/user/app1/build/generated/easylauncher/res/prodDebug/mipmap-xhdpi/ic_launcher_round.png: Error: Duplicate resources
[mipmap-xxhdpi-v4/ic_launcher_foreground] /home/user/app1/src/prodDebug/res/mipmap-xxhdpi/ic_launcher_foreground.png [mipmap-xxhdpi-v4/ic_launcher_foreground] /home/user/app1/build/generated/easylauncher/res/prodDebug/mipmap-xxhdpi/ic_launcher_foreground.png: Error: Duplicate resources
[mipmap-xxhdpi-v4/ic_launcher] /home/user/app1/src/prodDebug/res/mipmap-xxhdpi/ic_launcher.png [mipmap-xxhdpi-v4/ic_launcher] /home/user/app1/build/generated/easylauncher/res/prodDebug/mipmap-xxhdpi/ic_launcher.png: Error: Duplicate resources
[mipmap-xxhdpi-v4/ic_launcher_round] /home/user/app1/src/prodDebug/res/mipmap-xxhdpi/ic_launcher_round.png [mipmap-xxhdpi-v4/ic_launcher_round] /home/user/app1/build/generated/easylauncher/res/prodDebug/mipmap-xxhdpi/ic_launcher_round.png: Error: Duplicate resources
[mipmap-mdpi-v4/ic_launcher_foreground] /home/user/app1/src/prodDebug/res/mipmap-mdpi/ic_launcher_foreground.png [mipmap-mdpi-v4/ic_launcher_foreground] /home/user/app1/build/generated/easylauncher/res/prodDebug/mipmap-mdpi/ic_launcher_foreground.png: Error: Duplicate resources
[mipmap-mdpi-v4/ic_launcher] /home/user/app1/src/prodDebug/res/mipmap-mdpi/ic_launcher.png [mipmap-mdpi-v4/ic_launcher] /home/user/app1/build/generated/easylauncher/res/prodDebug/mipmap-mdpi/ic_launcher.png: Error: Duplicate resources
[mipmap-mdpi-v4/ic_launcher_round] /home/user/app1/src/prodDebug/res/mipmap-mdpi/ic_launcher_round.png [mipmap-mdpi-v4/ic_launcher_round] /home/user/app1/build/generated/easylauncher/res/prodDebug/mipmap-mdpi/ic_launcher_round.png: Error: Duplicate resources
[mipmap-hdpi-v4/ic_launcher_foreground] /home/user/app1/src/prodDebug/res/mipmap-hdpi/ic_launcher_foreground.png [mipmap-hdpi-v4/ic_launcher_foreground] /home/user/app1/build/generated/easylauncher/res/prodDebug/mipmap-hdpi/ic_launcher_foreground.png: Error: Duplicate resources
[mipmap-hdpi-v4/ic_launcher] /home/user/app1/src/prodDebug/res/mipmap-hdpi/ic_launcher.png [mipmap-hdpi-v4/ic_launcher] /home/user/app1/build/generated/easylauncher/res/prodDebug/mipmap-hdpi/ic_launcher.png: Error: Duplicate resources
[mipmap-hdpi-v4/ic_launcher_round] /home/user/app1/src/prodDebug/res/mipmap-hdpi/ic_launcher_round.png [mipmap-hdpi-v4/ic_launcher_round] /home/user/app1/build/generated/easylauncher/res/prodDebug/mipmap-hdpi/ic_launcher_round.png: Error: Duplicate resources
[mipmap-xxxhdpi-v4/ic_launcher_foreground] /home/user/app1/src/prodDebug/res/mipmap-xxxhdpi/ic_launcher_foreground.png [mipmap-xxxhdpi-v4/ic_launcher_foreground] /home/user/app1/build/generated/easylauncher/res/prodDebug/mipmap-xxxhdpi/ic_launcher_foreground.png: Error: Duplicate resources
[mipmap-xxxhdpi-v4/ic_launcher] /home/user/app1/src/prodDebug/res/mipmap-xxxhdpi/ic_launcher.png [mipmap-xxxhdpi-v4/ic_launcher] /home/user/app1/build/generated/easylauncher/res/prodDebug/mipmap-xxxhdpi/ic_launcher.png: Error: Duplicate resources
[mipmap-xxxhdpi-v4/ic_launcher_round] /home/user/app1/src/prodDebug/res/mipmap-xxxhdpi/ic_launcher_round.png [mipmap-xxxhdpi-v4/ic_launcher_round] /home/user/app1/build/generated/easylauncher/res/prodDebug/mipmap-xxxhdpi/ic_launcher_round.png: Error: Duplicate resources

@repitch
Copy link

repitch commented Jul 18, 2019

Same problem. @akaita can you reopen issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

4 participants