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'
}

 

posted @ 2020-02-16 09:41  阿布不学习  阅读(4612)  评论(0编辑  收藏  举报