I have an android studio project, with the file gradle/wrapper/gradle-wrapper.properties
configured as following.
#Wed Apr 10 15:27:10 PDT 2013
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-2.2.1-all.zip
And I have the 2.2.1-all
version installed in my home directory.
.gradle/wrapper/dists/gradle-2.2.1-all/c64ydeuardnfqctvr1gm30w53/gradle-2.2.1-all.zip
When I invoke ./gradlew
command to build the project. I should use the gradle-2.2.1-all.zip
to build.
But it doesn't, it will download another gradle even for the same version instead. So, there are two gradles for the version 2.2.1-all
. Because my internet connection is very slow, it takes too long.
.gradle/wrapper/dists/gradle-2.2.1-all/c64ydeuardnfqctvr1gm30w53/gradle-2.2.1-all.zip
.gradle/wrapper/dists/gradle-2.2.1-all/6dibv5rcnnqlfbq9klf8imrndn/gradle-2.2.1-all.zip
It's very annoying since it has to download a new one for the same version very time I invoke the command to build my project.
Why the gradle build system couldn't pick the installed one?