Solution to android gradle-8.0-bin-zip download failure and slow download

1. The Android Studio-3.1.20 version of gradle-8.0-bin-zip failed to download, and the download was very slow or failed.

  1. If your studio downloads gradle very slowly or fails to download, you can go togradle official website to download it yourself, and then import it according to the following method. Can.

2. Configure the local storage path of the manually downloaded gradle.

  1. After creating a project, first look at the gradle local storage path in Settings. By default, a ".gradle" folder is automatically created in the C drive. You can change it to another drive, but it is not recommended. It may cause AS to fail to download files or cause strange problems! ! !

Insert image description here

  1. Look at the gradle version number in the gradle-wrapper.properties file.
    Insert image description here
  2. Look at the .gradle folder on your computer disk.
    Insert image description here
  3. The file directory in the .gradle folder.
    Insert image description here
    Insert image description here
  4. If your studio download is slow or fails, you can go to gradle official website to download it yourself, and then import it according to the picture above. If your studio has been downloaded by yourself, it is also in the path shown below.
    Insert image description here
  5. Projects created with studio-3.1.20 or later may also download the gradle-8.0-src.zip file. If it is also very slow or fails, go togradle official website< /span>Download it yourself, and then follow the pictures below.

Insert image description here
Insert image description here
Insert image description here
Insert image description here
Insert image description here
Insert image description here
Just put the gradle-8.0-src file you downloaded here, no need to unzip it.
Insert image description here
6. Re-open the project and it’s done

Guess you like

Origin blog.csdn.net/IT2047668268/article/details/134652885