android studio编译报错:
2 files found with path 'META-INF/kotlinx_coroutines_core.version'.
Adding a packagingOptions block may help
点击上一级报错原因:
Execution failed for task ':app:mergeDebugJavaResource'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.MergeJavaResWorkAction
> 2 files found with path 'META-INF/kotlinx_coroutines_core.version' from inputs:文章来源:https://www.toymoban.com/news/detail-690172.html
解决方案:在app module的build.gradle文件里面的android{}增加packagingOptions配置,exclude 排除META-INF/kotlinx_coroutines_core.version:文章来源地址https://www.toymoban.com/news/detail-690172.html
packagingOptions {
exclude 'META-INF/kotlinx_coroutines_core.version'
}
到了这里,关于android studio编译报错:2 files found with path ‘META-INF/kotlinx_coroutines_core.version‘.的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!