记录项目开发中遇到的一个问题,防止后续再踩雷:
自己封装了一个功能库,库名字叫lib,满心欢喜接入到app 工程。编译打包时却报错:2 files found with path 'META-INF/lib_release.kotlin_module'。
> A failure occurred while executing com.android.build.gradle.internal.tasks.MergeJavaResWorkAction
> 2 files found with path 'META-INF/lib_release.kotlin_module'.
Adding a packagingOptions block may help, please refer to
https://google.github.io/android-gradle-dsl/current/com.android.build.gradle.internal.dsl.PackagingOptions.html
for more information
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

编译打包时候会生成两个一样的文件,文件路径为'META-INF/lib_release.kotlin_module'。