Closed dzuluaga closed 1 month ago
Investigated this issue for a while and couldn't find any sustainable permanent solution. It seems like there is no way to tell dependencies to exclude/merge/pick some of the duplicated files nor it is possible to set packagingOptions for the app that would consume our library. For now, we should mention this issue with a way to fix it.
Sounds good. Thanks. Let's keep an eye on it.
During the build process of our Android application, we encounter a failure at the
:app:mergeDebugJavaResource
task. The build process fails due to the presence of duplicate files (META-INF/DEPENDENCIES
) found in multiple dependencies.Error Output
Steps to Reproduce
Potential Temporary Solution
I have added a
packagingOptions
block in thebuild.gradle
file to handle the duplicate file issue:This resolves the build issue by either excluding the
META-INF/DEPENDENCIES
file or selecting the first instance of the file.Question
Is the solution mentioned above a recommended permanent fix, or should a different approach be taken to resolve this issue in a more sustainable way?