I met a problem today. In a certain project, I was informed that the gradle version is too low and needs to be upgraded.

1. Open the terminal and run the open-e. bash_profile commandCopy the code

2. Add in the following path GRADLE_HOME = / Users/yao /. Gradle/wrapper/dists/gradle - 4.1 - all/bzyivzo6n839fup2jbap0tjew/gradle - 4.1; export GRADLE_HOME export PATH=$PATH:$GRADLE_HOME/binCopy the code

3. Run the source ~/. Bash_profile command on the terminal to update the. Bash_profile fileCopy the code

Gradle -v = gradle2.14 gradle -v = gradle2.14 gradle -v = gradle2.14 gradle -v = gradle2.14 gradle -v = gradle2.14

Run the /usr/local/cellar /gradle directory and copy gradle4.1. In the configuration file export GRADLE_HOME = / usr/local/Cellar gradle/gradle - 4.1 export PATH = $PATH: $GRADLE_HOME/bin 3. Then you can play happilyCopy the code

1. Install Gradle on Mac and use Gradle with Idea

2. After the Mac terminal runs the source. bash_profile command, the Mac terminal displays command not found when all commands are entered

3. Install and uninstall Gradle on MAC

4. Gradle version in Mac does not change after the configuration is modified