Say I have this directory structure:
app
--src
|--main
| |--java
| |--res
| |--drawable
| |--values
| |--values-fr
The final working solution is to include a language - in this case, only German (de):
productFlavors {
flavour3 {
resConfigs 'de' // include '-de' resources, along with default 'values'
}
}
As a reference, you can also check the list of country codes from ICU here.
You can exclude those folders by using this snippet:
sourceSets {
flavor3 {
main {
resources {
srcDir 'res'
exclude '**/values-fr/**'
}
}
}
}