Solve the problem of AndroidStudio automatically downloading gradle failure

After encountering this problem, I had no clue, so I immediately thought of finding Du Niang. Most of the posts on Du Niang ask us to download the required version of gradle and put it in this folder.

However, after you restart the AS after doing what they did, you find that it does not take effect !

Actually you should do it like this:

1. Download the gradle version you need from the gradle download website . For example, the blogger needs gradle-6.5, and the gradle version you need will be prompted in the error message;

2. After downloading, extract it to any directory;

3. Find this location in the Settings of AS

After modifying according to the prompts in the figure above, click OK, and then restart the AS. After restarting this time, you will find that AS has found the gradle file and started to download some required network resources.

You're done, the meeting is adjourned.

If you encounter any problems, please leave a message below.

Guess you like

Origin blog.csdn.net/yonghuming_jesse/article/details/110860546