因为公司项目需要低版本gradle,加上同事其他项目也是需要低版本gradle,要更换gradle,使用2.14.1,于是遇到了如下报错,百度了,很多人都没有直接的办法,直接放弃去找已经下载的使用。看了一篇文章https://www.cnblogs.com/jycboy/p/5819393.html,觉得有用,想了很久(本人比较笨),明白了自己为什么每次更换gradle都栽在这里,“对gradle和gradle plugin(gradle插件)”的使用没弄明白。
补充知识:As、gradle 和gradle plugin见https://blog.csdn.net/gongxiaoou/article/details/81082387
如果使用的gradle和gradle plugin的版本是对应的,在联网状态下,这些内容会自动下载,就不会存在找不到资源文件的问题了。下面讲一下gradle和gradle plugin
Error:A problem occurred configuring root project 'Client'.
> Could not resolve all dependencies for configuration ':classpath'.
> Could not find com.android.tools.build:gradle:2.14.1.
Searched in the foll