./gradlew will download the diff versions of gradle into dists folder
ref: gardle_wrapper_doc
- -all.zip (contains binaries, sources and offline documentation)
- -bin.zip (only binaries)
- -src.zip (ony source code)
./gradlew wrapper
will replace -all.zip
with -bin.zip
But the problem with Android Studio, it is recommended to use -all.zip
With gradle 3.1, the distribution type can be fixed with command line option, like
gradle wrapper --gradle-version 2.14 --distribution-type all
commit ref
ref: dzone article