Android studio updates the status of refreshing ‘xxx’ gradle project. Solution

preface

Before developing the project, I used Android stuio2.1.0. After the project is developed, I can't bear to update the compilation environment. Update the compilation environment to androidstuio2.2.2. After the update, open androidstudio excitedly, and the original project is in the following state:

I thought this was the normal situation after the update, but it has been in this state all the time. Then I searched the Internet and summarized a simple and convenient solution:

Step 1: close the project, enter the gradle folder under the Android studio installation directory, and view the gradle version of the new version of Android studio, as shown below:

Copy the version number of gradle above, such as gradle-2.14.1

Step 2: enter the wrapper folder under gradle in the development project folder, and open the file gradle-wrapper.properties. The contents are as follows:

Focus on the last line. Replace gradle-2.1.0 with gradle-2.14.1 copied in the previous step. The replaced code is as follows:

Step 3: reopen the project. After the project is processed for a period of time, the following window will pop up:

Click Update, and after a crackle, run the project.

Thank you for reading, hope to help you, thank you for your support to this site!

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>