安装
官方安装教程:https://gradle.org/install/
macOS
brew install gradle
安装指定版本的
brew info gradle@6gradle@6 is keg-only, which means it was not symlinked into /usr/local,because this is an alternate version of another formula.If you need to have gradle@6 first in your PATH, run:echo 'export PATH="/usr/local/opt/gradle@6/bin:$PATH"' >> ~/.zshrcsource ~/.zshrc
阿里云
https://help.aliyun.com/document_detail/102512.html
代理的仓库列表
gradle配置指南
在build.gradle文件中加入以下代码:
allprojects {repositories {maven { url 'https://maven.aliyun.com/repository/public/' }mavenLocal()mavenCentral()}}
