Could not download guava.jar (com.google.guava:guava:18.0)异常解决

报错如图1

报错原因:guava的jar包一直下不下来(图2)

解决方法:使用阿里云镜像替代jcenter地址。

修改项目目录的build.gradle文件中的2个地方,如图

修改完之后,重新编译项目,然后编译就通过了。

猜你喜欢

转载自blog.csdn.net/qq_30875213/article/details/102489108