Manually download and configure Android Studio Gradle in Windows environment

I saw this method in a certain article, and I wanted to search for it on the Internet, but I couldn’t find it, so I simply wrote it myself.

text

It may be that the recent AS convulsions (you can't climb the ladder), which caused the download of Gradle to be too slow. After my computer was reset, I waited for more than an hour and did not download it. Then I found the following method on the Internet.

Problem recurrence

Open AS, open it casually or create a new project. The loading and downloading Gradle interface will appear....

(I opened an Eclipse project)

Then came the headache.

......


Solution

Switch AS to the background and open the user folder

C:\Users\<computer user name>\.gradle\wrapper\dists

This folder is the target folder

Then download the corresponding gradle (I can open Gradle Distributions directly )

After the download is complete, close the AS. enter directory

1. Put the downloaded gradle-4.8-bin.zip in

2. Unzip gradle-4.8-bin.zip

3. Delete gradle-4.8-bin.zip.part

4. Create a gradle-4.8-bin.zip.ok

Re-open AS, done!

other problems

And then it will appear again...

Could not find com.android.tools.build: gradle:4.8.1.

this is very simple

Then save it, and wait for the download to load successfully (this part may require a ladder).

and then...

Minimum supported Gradle version is 6.1.1. Current version is 4.8.

I am Nima...

Just click it, ok. problem solved.

Supongo que te gusta

Origin blog.csdn.net/AoXue2017/article/details/108736919
Recomendado
Clasificación