Install Gradle and configuration in mac environment

Install Gradle and configuration in mac environment

  • Download and install

Gradle official website

gradle download address

  • macOS can be installed using brew- Homebrewis “the missing package manager for macOS”.
brew install gradle
  • Environment configuration
# Gradle
export GRADLE=/usr/local/bin/gradle
export PATH=$PATH:$GRADLE/bin
# Gradle END
  • The version check shows that the version number is successful
gradle -v
# 有出现如下的信息, 说明安装成功, 环境配置成功
------------------------------------------------------------
Gradle 6.2.2
------------------------------------------------------------

Guess you like

Origin blog.csdn.net/weixin_43764814/article/details/112425528