android studio编译报错:2 files found with path ‘META-INF/kotlinx_coroutines_core.version‘.
Posted zhangphil
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了android studio编译报错:2 files found with path ‘META-INF/kotlinx_coroutines_core.version‘.相关的知识,希望对你有一定的参考价值。
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:
解决方案:在app module的build.gradle文件里面的android增加packagingOptions配置,exclude 排除META-INF/kotlinx_coroutines_core.version:
packagingOptions
exclude 'META-INF/kotlinx_coroutines_core.version'
以上是关于android studio编译报错:2 files found with path ‘META-INF/kotlinx_coroutines_core.version‘.的主要内容,如果未能解决你的问题,请参考以下文章
android studio编译报错:2 files found with path ‘META-INF/kotlinx_coroutines_core.version‘.
我的Android进阶之旅彻底解决Android Studio编译so库的时候报错:More than one file was found with OS independent path
我的Android进阶之旅彻底解决Android Studio编译so库的时候报错:More than one file was found with OS independent path
错误记录Android Studio 编译报错 ( AAPT: error: failed to read PNG signature: file does not start with PN )
我的Android进阶之旅Android Studio中NDK开发移动.cpp 文件目录,重新编译报错:clang++: error: no such file or directory
错误记录Android Studio 编译报错 ( Module was compiled with an incompatible version of Kotlin. The binary )