Skip to content

Instantly share code, notes, and snippets.

@chenrui333
Created September 25, 2016 02:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chenrui333/5d25b025fc6ce8e05c3e82a44209aed6 to your computer and use it in GitHub Desktop.
Save chenrui333/5d25b025fc6ce8e05c3e82a44209aed6 to your computer and use it in GitHub Desktop.
Work related to gradle issues

Multiple versions of gradle

./gradlew will download the diff versions of gradle into dists folder

ref: gardle_wrapper_doc

gradle-x.xx-all.zip vs gradle-x.xx-bin.zip

  • -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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment