Download Gradle
: Https://gradle.org/install
Download latest Version: gradle-3.3 (current latest update February 8, 2017)
Configuring the Gradle Environment
My native Gradle storage path:/users/zhoujian/gradle/gradle-3.3
First step: Turn on Mac end
Step two: Enter in Terminal: OPEN-E. Bash_profile, open a. bash_profile file
Step three: Edit the. bash_profile file
Enter the following in the. bash_profile file
GRADLE_HOME=/Users/zhoujian/gradle/gradle-3.3;(Gradle的本机路径)export GRADLE_HOMEexport PATH=$PATH:$GRADLE_HOME/bin
Fourth step: Save the. bash_profile file
Fifth step: Execute the source ~/.bash_profile on the terminal, update the. bash_profile file
Sixth step: Perform gradle-version on the terminal to see if the configuration is successful.
Lan Feng Zeke
Links: Http://www.jianshu.com/p/6b2fc4f16e24
Source: Pinterest
Copyright belongs to the author. Commercial reprint please contact the author for authorization, non-commercial reprint please specify the source
Mac Configuration Gradle Environment