以as4.0+为例

1、首先根据gradle-wrapper.properties下载对应的版本

下载完之后在setting中配置gradle路径

 

 2、配置http proxy

这里我使用mirrors.neusoft.edu.cn地址,如图