WeChat Image_20200821154430.png
最近在开发相机需求,在我们现有的项目中有checkStyle和butterKnife,然后当引入相机依赖包之后一直提示:
# [Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve](https://stackoverflow.com/questions/51218535/unable-to-resolve-dependency-for-appdebug-compileclasspath-could-not-resolv)
后来发现是com.google.guava:listenablefuture:已经存在一个名为com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava的依赖包,但是我的项目中有好几处都调用了butterKnife, 这个时候就在想有没有能全部替换的方法,答案是肯定的
在项目的根目录的budild.gradle下配置
WeChat Image_20200821160100.png
如上图配置完就可以将com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava强制修改为com.google.guava:listenablefuture:1.0版本了












网友评论