moduleA is a dynamic feature module with dependency which is an aar lib.
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation project(':app')
implementation(name:'lib', ext:'aar')
}
It builds successful and installs on the emulator but whenever I want to create an app-bundle, I get the following error:
Modules 'base' and 'moduleA' contain entry 'res/drawable/xyz.xml' with different content.
If I should rename xyz.xml in the app module, I get error:
../moduleA/build/intermediates/metadata_feature_manifest/fullDebug/processFullDebugManifest/metadata-feature/AndroidManifest.xml:61:13-63:50: AAPT: error: resource drawable/xyz (aka my.app.main.drawable/xyz) not found.
This is one of the issues highlighted in Plaid's modularization article.
To solve it, I had to create an empty xyz.xml in the app module, but when creating an app-bundle, I get the error:
Modules 'base' and 'moduleA' contain entry 'res/drawable/xyz.xml' with different content.
What is the problem and how can it be solved?