forJrking/KLuban

编译失败, 2 files found with path 'META-INF/library_release.kotlin_module'.

Closed this issue · 1 comments

TxcA commented
2 files found with path 'META-INF/library_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

  • 错误原因

implementation的另一个model也使用了 model 名称为library,且没有自定义命名。

  • 解决办法:

model build.gradle

...
    compileOptions {
        kotlinOptions.freeCompilerArgs += ['-module-name', "com.forjrking.lubankt.library"]
    }
...
TxcA commented

PR #23