First, download gradle
http://services.gradle.org/distributions/
Select the desired version download, download a zip archive, unzip to D: /programming/ANDROIDSTUDIO/android-studio/gradle/gradle-3.5, based on individual specific path.
Second, configure Gradle home
setting -> search Gradle, instead shown below:
Third, the change gradle-wrapper.properties (Gradle Version) file
The version number can be changed.