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.
- 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.
- 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! ! !
- Look at the gradle version number in the gradle-wrapper.properties file.
- Look at the .gradle folder on your computer disk.
- The file directory in the .gradle folder.
- 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.
- 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.
Just put the gradle-8.0-src file you downloaded here, no need to unzip it.
6. Re-open the project and it’s done