Task :app:checkReleaseDuplicateClasses FAILED
Duplicate class com.google.common.util.concurrent.ListenableFuture found in modules jetified-guava-20.0 (com.google.guava:guava:20.0) and jetified-listenablefuture-1.0 (com.google.guava:listenablefuture:1.0)
解决方法:
1. Navigation -> Search Everywhere,勾选Include non-project items进行全局搜索
2. 比如搜索com.google.guava就可以搜索出所有的有关的依赖库
3. ./gradlew app:dependencies查看找出依赖库之间的关系
4. 找到有关的依赖库xxx:xx:x
implementation("xxx:xx:x") {
exclude group: 'com.google.guava'
}
或者全部库排查如下:
configurations.all {
exclude group: 'com.google.guava', module: 'listenablefuture'
}
标签:google,listenablefuture,Duplicate,android,guava,com,class
From: https://www.cnblogs.com/yongfengnice/p/16942396.html