#7716·libgdx

Modules 'base' and 'LibgdxModule' contain entry 'res/drawable/design_ic_visibility.xml' with different content

Author: alexhorsaCreated Oct 28, 2025Updated Jun 5, 2026
Labelsandroid

Hi, I am using libGDX as a dynamic feature module in an Android project

After upgrading to version 1.14.0 I get this error when generating app bundle:

Modules 'base' and 'LibgdxModule' contain entry 'res/drawable/design_ic_visibility.xml' with different content

It seems that this file res/drawable/design_ic_visibility.xml conflicts with the same file included in Google Material Library (com.google.android.material:material:1.12.0). The file design_ic_visibility.xml is included in gdx-backend-android inside res/drawable folder.

I have tried the following without success:

gradle.build

packagingOptions {
        resources {
            // Remove duplicates coming from gdx-backend-android in the feature module
            excludes += [
                '/res/drawable/design_ic_visibility.xml',
                '/res/drawable-anydpi-v21/design_ic_visibility.xml'
            ]
        }
    }
packagingOptions {
        resources {
            pickFirsts += 'design_ic_visibility.xml'
            excludes += 'res/drawable/design_ic_visibility.xml'
        }
    }
    androidResources {
        ignoreAssetsPattern "design_ic_visibility.xml"
    }

I have even tried to copy the same file from Google material library and place it under my res/drawable folder in hope that will overwrite the one from libgdx but still no success

What is the purpose of res/drawable/design_ic_visibility.xml? Is it to overwrite the google material one? Is it used inside libgdx? Maybe it could be renamed