In the process of developing Android with Android Studio, every time you start a project, you will run Gradle repository dependencies. Because the dependency address of Gradle repository is external, each run will take a lot of time. By configuring Gradle repository locally, you can avoid wasting time before each run project

Gradle is an open source tool for automating project building based on Apache Ant and Apache Maven concepts. It uses a Groovy-based domain-specific language (DSL) to declare project Settings.

1. Download Gradle

1) Personal download address:Services.gradle.org/distributio…Download a version of Gradle.Run NPM I gradle -s -d

2. Configure environment variables

Unzip the downloaded file to its location:

Configuration GRADLE_HOME:

Configure the Path:

3. Verify

In win10, open CMD as administrator:

4. AS configuration

  1. Gradle Home is the directory where Gradle jars are downloaded. Gradle Home is the directory where Gradle jars are downloaded

  2. Specify the Gradle working home directory