Android studio update
Step 1: Under your project folder: gradlewrapper gradle-wrapper.properties in your project root directory (as long as you select OK when opening the project, this file will appear)
Modify the address of the last line of gradle-wrapper.properties mine is:
1
|
distributionUrl=https://services.gradle.org/distributions/gradle-2.14.1-all.zip
|
The new gradle address is available from the official download place. For example: gradle-3.3-all.zip. Then put the above
1
|
distributionUrl=https://services.gradle.org/distributions/gradle-2.14.1-all.zip
|
Replace with:
1
|
distributionUrl=https://services.gradle.org/distributions/gradle-3.3-all.zip
|
Step 2: Enter the gradlew build execution command in the terminal of Android studio, and wait for a while, BUILD SUCCESSFUL will appear, indicating that the update is successful.
then enter
C:\Users\lipeineng\.gradle\wrapper\dists\gradle-3.3-all\55gk2rcmfc6p2dg9u9ohc3hw9
This directory copies the gradle-3.3 directory to
D:\android\androidstudio\Android Studio\gradle\gradle-3.3
, then select Cancel when opening the project, then select
D:\android\androidstudio\Android Studio\gradle\gradle-3.3
This directory can be used as the Gradle home.