Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio gradle-###-bin.zip vs. gradle-###-all.zip

One developer on my team has some setting in Android Studio that replaces the distributionUrl entry in gradle/wrapper/gradle-wrapper.properties to use the gradle-###-all.zip, while my Android Studio changes it back to gradle-###-bin.zip.

Basically, my diff always looks like:

-distributionUrl=https\://services.gradle.org/distributions/gradle-1.12-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-1.12-bin.zip

This is annoying. What setting is it, and how do I change it?

like image 833
Jeff Brateman Avatar asked Aug 22 '14 16:08

Jeff Brateman


People also ask

What is the Gradle in Android Studio?

Android Studio uses Gradle, an advanced build toolkit, to automate and manage the build process, while allowing you to define flexible custom build configurations. Each build configuration can define its own set of code and resources, while reusing the parts common to all versions of your app.

Is Gradle installed with Android studio?

Android Studio will download gradle to sub dir named by a hash. To download manually, need to download to the exact sub dir named by the hash.

What is Gradle used for?

Gradle is a build automation tool known for its flexibility to build software. A build automation tool is used to automate the creation of applications. The building process includes compiling, linking, and packaging the code. The process becomes more consistent with the help of build automation tools.

What are Gradle files in Android?

gradle files are the main script files for automating the tasks in an android project and are used by Gradle for generating the APK from the source files.


2 Answers

gradle-1.12-all.zip file will have binaries, sources, and documentation. gradle-1.12-bin.zip will have only binaries(That should be enough as you don't need any samples/docs)

If you want to know about gradle wrapper, please check this http://www.gradle.org/docs/current/userguide/gradle_wrapper.html

like image 149
San Avatar answered Oct 18 '22 01:10

San


From what I've seen Android Studio recommends to use gradle-*-all.zip and even provides a "quick fix" to change that. On the other hand, the command ./gradlew wrapper sets up the wrapper using gradle-*-bin.zip, overwriting the previous setting. Make sure nobody is calling "./gradlew wrapper" automatically.

like image 45
niqueco Avatar answered Oct 18 '22 00:10

niqueco