In my android project with multiple modules, i get the well-known issue “6 files found with path ‘meta-inf/license.md'” whenever i close my laptop, reopen it a day later and rebuild the project.
Sometimes after rebuilding just after a while it happens.
My app module’s build.gradle already contains an exclude for these files, currently it’s just anything under META-INF:
packaging {
resources.excludes.add(
"/META-INF/*"
)
}
Now whenever this issue happens, it seems to ignore the rule above.
Just adding a single space anywhere in this build.gradle makes it build without problems again.
What’s going on?