win10下gradle6.2版本下载安装配置,超详细
我们在java开发中会使用到gradle,它是一个基于Apache Ant和Apache Maven概念的项目自动化构建开源工具,使用一种基于Groovy的特定领域语言(DSL)来声明项目设置,抛弃了基于XML的各种繁琐配置。
一、在安装的是最新版本是6.2版本,如果大家在看到这篇文章还有更高版本,可浏览本人【网盘目录】查看下载更新版本,此次安装的是【6.2版本】,如果有升级版本,大家可以到网盘下载最新版本,本人会及时更新。如果你想安装5.x版本,也可以浏览下载。
如果单独下载6.2版本,可直接点6.2版本链接直接下载。
![](https://upload-images.jianshu.io/upload_images/15594114-3d689ea67d72d192.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
二、下载后直接解压文件夹,避免解压到中文目录或有空格目录,否则有的情况会出现莫名其妙的问题。
![](https://upload-images.jianshu.io/upload_images/15594114-3c46d8da37e9ed22.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
三、右键点击桌面【此电脑】,打开【属性】。
![](https://upload-images.jianshu.io/upload_images/15594114-5c2de09c9af5740e.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
四、选择【高级系统设置】。
![](https://upload-images.jianshu.io/upload_images/15594114-7fccfb33f35bdf2e.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
![](https://upload-images.jianshu.io/upload_images/15594114-7fccfb33f35bdf2e.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
五、选择【环境变量】。
![](https://upload-images.jianshu.io/upload_images/15594114-b7e7837c5bfe478f.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
![](https://img2020.cnblogs.com/blog/1989053/202003/1989053-20200330090956973-1698288801.png)
六、系统变量下点击【新建】按钮。
![](https://upload-images.jianshu.io/upload_images/15594114-053a85f877223906.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
![](https://img2020.cnblogs.com/blog/1989053/202003/1989053-20200330091021550-1817324845.png)
七、变量名填写GRADLE_HOME,变量值将上面解压的gradle的目录拷贝下来,填写完后点击【确定】。
![](https://upload-images.jianshu.io/upload_images/15594114-fdb7d1a26dc7d1ae.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
![](https://img2020.cnblogs.com/blog/1989053/202003/1989053-20200330091021543-49571126.png)
八、找到Path,点击【编辑】后弹出窗点击【新建】。
![](https://upload-images.jianshu.io/upload_images/15594114-4bfc095720bd7e97.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
![](https://img2020.cnblogs.com/blog/1989053/202003/1989053-20200330091035968-1820821839.png)
九、拷贝gradle的bin目录全路径后点击【确定】。
![](https://upload-images.jianshu.io/upload_images/15594114-1c9fe488bf35aaac.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
![](https://img2020.cnblogs.com/blog/1989053/202003/1989053-20200330091050682-2013108147.png)
十、返回后再次点击【确定】。
![](https://upload-images.jianshu.io/upload_images/15594114-0894ba12d5cbdf82.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
![](https://img2020.cnblogs.com/blog/1989053/202003/1989053-20200330091105803-2004631420.png)
十一、win+r组合键打开运行窗口,输入cmd后确定。
![](https://upload-images.jianshu.io/upload_images/15594114-f14f7fa803b7fe88.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
![](https://img2020.cnblogs.com/blog/1989053/202003/1989053-20200330091117631-678381196.png)
十二、输入gradle -v,如果我们看到版本相关信息,说明已经安装配置成功。
![](https://upload-images.jianshu.io/upload_images/15594114-fc567099727534ae.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
![](https://img2020.cnblogs.com/blog/1989053/202003/1989053-20200330091130025-1867526947.png)