报错如图1
报错原因:guava的jar包一直下不下来(图2)
解决方法:使用阿里云镜像替代jcenter地址。
修改项目目录的build.gradle文件中的2个地方,如图
修改完之后,重新编译项目,然后编译就通过了。