Table of contents
Solving Gradle download problems: manual installation
Solve the problem of slow download of jar package: change the download source
Cause of the problem
Domestic access to Google is blocked, resulting in slow access or simply being unable to download.
Solution
Solving Gradle download problems: manual installation
-
Visit the official website Gradle | Release Candidate and the download address of each version Gradle Distributions
-
Download and unzip using the download tool
-
File——settings in Android Studio
-
Select Gradle in Build, Execution, Deployment
-
Select Specified location in the Use Gradle from drop-down box, and select the path to the decompressed address of the Gradle download above.
-
Finally, Apply and close the page to restart Android Studio.
Solve the problem of slow download of jar package: change the download source
-
Select the build.gradle file in the project
-
Copy it into the repositories
maven{ url 'http://maven.aliyun.com/nexus/content/groups/public/'}
. This is a mirror address of Alibaba Cloud in China.
Reprinted from: https://www.cnblogs.com/lindewind/p/14454753.html