First of all, first download the latest version of Gradle, the URL is as follows:
http://www.gradle.org/get-started
Then put the downloaded zip package on the path you want to install and I'll install it on the
/usr/local/bin;
Then open the. bash_profile file on your computer and enter the following command:
gradle_home=/usr/local/bin/gradle-1.8;
Export Gradle_home
Export path= $PATH: $GRADLE _home/bin
Then enter the following command on the console:
SOURCE ~/.bash_profile
This installs successfully, and you can see if the installation was successful with the following command.
Gradle-version
If the prompt does not have a gradle command, it is possible that:
1. Gradle_home path may not be correct;
2. No source ~/.bash_profile executed
You are welcome to add me
:
15189838151
Or
fyy57752
Qq:
1103753355
Learn together, discuss technology
Gradle for Mac installation configuration