# Execution failed for task ':app:mergeDebugResources'. > Duplicate resources

**Code:** `Duplicate resources` · **Category:** Android · **Seen on:** Android

Two resource files define the same name and type in the same configuration (e.g. ic_logo.png and ic_logo.xml).

## Meaning

Resource names ignore extensions, so a PNG and a vector with the same name collide. Copy-pasted folders, flavor overlays and library resources with identical names also trigger it.

## Common causes

- Same resource name with different extensions
- Duplicate file in two source sets for the same variant
- Generated resources clashing with yours

## Quick fix

1. Rename or delete one of the files listed
2. Check flavor/source set folders
3. Prefix your resources to avoid collisions

## Detailed fix by platform

### Shell

1. `find app/src -path '*/res/drawable*' -name 'ic_logo.*'`

## How to diagnose

1. **Files** — Both paths listed in the error
2. **Source sets** — main vs flavor

---
Source: [WhatIsMyError](https://whatismyerror.com/errors/android/duplicate-resources)
