编译报错
More than one file was found with OS independent path
解决办法
android {
compileSdkVersion 26
buildToolsVersion "26.0.2"
packagingOptions {//加上这写代码
pickFirst 'META-INF/*'
}
}
本文介绍了解决Android项目中出现的MorethanonefilewasfoundwithOSindependentpath错误的方法。通过在build.gradle文件中加入特定的packagingOptions配置,可以避免资源文件冲突导致的编译错误。
编译报错
More than one file was found with OS independent path
解决办法
android {
compileSdkVersion 26
buildToolsVersion "26.0.2"
packagingOptions {//加上这写代码
pickFirst 'META-INF/*'
}
}
702
4975
1万+
1万+

被折叠的 条评论
为什么被折叠?
