[Android Learning] Slow downloading of jar and slow gradle

Table of contents

Cause of the problem

Solution

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

  1. Visit the official website Gradle | Release Candidate and the download address of each version Gradle Distributions

  2. Download and unzip using the download tool

  3. File——settings in Android Studio

  4. Select Gradle in Build, Execution, Deployment

  5. Select Specified location in the Use Gradle from drop-down box, and select the path to the decompressed address of the Gradle download above.

  6. Finally, Apply and close the page to restart Android Studio.

Solve the problem of slow download of jar package: change the download source

  1. Select the build.gradle file in the project

  2. 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 

Guess you like

Origin blog.csdn.net/qq_45769063/article/details/129034400