014-More than one file was found with OS independent path 'META-INF/DEPENDENCIES'

在报该编译错误的module的build.gradle中加入如下配置项,排除掉中间生成的META-INF/xxx文件

packagingOptions {
    exclude 'META-INF/DEPENDENCIES'
    exclude 'META-INF/NOTICE'
    exclude 'META-INF/LICENSE'
    exclude 'META-INF/LICENSE.txt'
    exclude 'META-INF/NOTICE.txt'
}

猜你喜欢

转载自www.cnblogs.com/qiuniao/p/12315768.html