Dynamic feature build fails with duplicated entry error

Meeting SDK Type and Version
SDK Type: Android
Version: 5.17.5

Description
Dynamic module example in SDK works well. However when I use same way in an existing app, it fails build with following error message

Error?

* What went wrong:
Execution failed for task ':app:packageDebugBundle'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.PackageBundleTask$BundleToolWorkAction
   > Modules 'base' and 'feature_mobilertc' contain entry 'res/xml/file_provider_paths.xml' with different content.