Gradle Environment Configuration
1. Find the Gradle file path, take the Mac as an example, first found in the application Android Studio, right-click "Show Package Content", in contents/gradle/gradle-2.14.1 (the version number may be different) directory found bin, You can drag the Bin folder to the terminal and there is a full path to the Bin folder.
2. Add the full directory of the Gradle Bin folder to the. bash_profile file, cd ~, and Vim. Bash_profile (not willing to command line, can be in the Finder, COMMAND + SHIFT + G, input ~, jump directly to the directory, Locate the. bash_profile file, right-click "Text Edit") to export path=${path}:/applications/android\ STUDIO.APP/CONTENTS/GRADLE/GRADLE-2.14.1/ The bin line is added to the end of the file and then saved to exit.
3. In the terminal, enter GRADLE-V to see if it is normal.
Android Gradle Learning Note 1