1. Download, unzip, and put the unzip directory D:\Gradle\gradle-4.5.1\bin in the path of the environment variable.
2. Set the default cache path.
#Modify the default cache directory # To modify the Gradle default cache directory, use the command gradle -g directory path, such as gradle -g D:\Gradle\.gradle #Modify the global default repository #Enter the init.d folder in the Gradle installation directory, create a new init.gradle file, and enter in this file allprojects { repositories { maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' } } }