Что такое all zip
Перейти к содержимому

Что такое all zip

  • автор:

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?

  • android
  • android-studio
  • android-gradle-plugin

asked Aug 22, 2014 at 16:10
Jeff Brateman Jeff Brateman
3,239 2 2 gold badges 20 20 silver badges 27 27 bronze badges

4 Answers 4

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)

7,970 7 7 gold badges 61 61 silver badges 66 66 bronze badges
answered Aug 22, 2014 at 22:18
5,577 2 2 gold badges 27 27 silver badges 28 28 bronze badges

Thanks, that’s informative, but I’m looking for the Android Studio setting/preference/config. Any ideas?

Aug 23, 2014 at 19:38

Same @San and @Jeff. I’m using IntelliJ and I need to know the build.gradle or IntelliJ configuration setting so that when gradle wrapper is run it sets the distributionUrl from gradle-4.1-bin.zip to gradle-4.1-all.zip .

Aug 28, 2017 at 21:05

@anon58192932 You need to extend the wrapper task and define distributionType = DistributionType.ALL , see docs.gradle.org/current/dsl/…

Aug 29, 2017 at 9:02

If you and the other developer want a uniform experience, place this code in your build.gradle file


This will make ./gradlew wrapper —gradle-version 5.6 automatically append -all instead of -bin


Like @San said, -all will have binaries, sources, and documentation, while -bin will just have the binaries.

answered Aug 21, 2019 at 13:18
2,815 2 2 gold badges 16 16 silver badges 31 31 bronze badges

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.

answered Jul 10, 2015 at 21:34
2,321 20 20 silver badges 40 40 bronze badges

Agree, the tip says: «You can configure Gradle wrapper to use distribution with sources. It will provide IDE with Gradle API/DSL documentation.» If you apply the tip, it changes to -all .

Oct 22, 2015 at 16:25

I’m not seeing this in IntelliJ unfortunately but I’m wondering if we can set this in the main build.gradle file in order to set it across the board for all users?

Aug 28, 2017 at 20:49

The difference is that the -bin version contains only the runtime and no sample code and documentation. 1

It actually makes sense to go for the -bin version: it is smaller and you’re unlikely to need the -all version unless you’re debugging Gradle scripts. For this reason, the lint warning to go for the -all version has been removed. Also, new projects are generated with the -bin version by default.

There is a ticket to let IntelliJ download the sources when you need them (after which there really isn’t a reason for the -all version), but it hasn’t been implemented yet.

Saved searches

Use saved searches to filter your results more quickly

Cancel Create saved search

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.

gradle / gradle Public

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gradle Wrapper is behaving weird #11879

MBurchard opened this issue Jan 13, 2020 · 1 comment

Gradle Wrapper is behaving weird #11879

MBurchard opened this issue Jan 13, 2020 · 1 comment


MBurchard commented Jan 13, 2020

I’ve put Gradle 6.0.1 on my computer.
Now there are two ways to initialize the Gradle Wrapper for a new project.

/opt/gradle/latest/bin/gradle wrapper --gradle-version=6.0.1 --distribution-type=all 

This works fine. With ./gradlew -v the download starts and the version is shown.

The second way is to have the Wrapper task in the build.gradle.

wrapper < description "Regenerates the Gradle Wrapper files" gradleVersion = '6.0.1' distributionUrl = "http://services.gradle.org/distributions/gradle-$-all.zip" > 

The initialization then is done by /opt/gradle/latest/bin/gradle wrapper .
But ./gradlew -v leads to an error.

./gradlew -v Downloading http://services.gradle.org/distributions/gradle-6.0.1-all.zip Could not unzip /home/mburchard/.gradle/wrapper/dists/gradle-6.0.1-all/6298f6turtwy8nm2vprrgfznr/gradle-6.0.1-all.zip to /home/mburchard/.gradle/wrapper/dists/gradle-6.0.1-all/6298f6turtwy8nm2vprrgfznr. Reason: zip file is empty Exception in thread "main" java.util.zip.ZipException: zip file is empty at java.base/java.util.zip.ZipFile$Source.zerror(ZipFile.java:1535) at java.base/java.util.zip.ZipFile$Source.findEND(ZipFile.java:1349) at java.base/java.util.zip.ZipFile$Source.initCEN(ZipFile.java:1443) at java.base/java.util.zip.ZipFile$Source.(ZipFile.java:1274) at java.base/java.util.zip.ZipFile$Source.get(ZipFile.java:1237) at java.base/java.util.zip.ZipFile$CleanableResource.(ZipFile.java:727) at java.base/java.util.zip.ZipFile$CleanableResource.get(ZipFile.java:844) at java.base/java.util.zip.ZipFile.(ZipFile.java:247) at java.base/java.util.zip.ZipFile.(ZipFile.java:177) at java.base/java.util.zip.ZipFile.(ZipFile.java:191) at org.gradle.wrapper.Install.unzip(Install.java:235) at org.gradle.wrapper.Install.access$900(Install.java:27) at org.gradle.wrapper.Install$1.call(Install.java:81) at org.gradle.wrapper.Install$1.call(Install.java:48) at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager.java:69) at org.gradle.wrapper.Install.createDist(Install.java:48) at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:107) at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:63) 

Investigation shows, that the first approach creates another id under the local .gradle folder then the second.

/home/mburchard/.gradle/wrapper/dists/gradle-6.0.1-all - 99d3u8wxs16ndehh90lbbir67 - 6298f6turtwy8nm2vprrgfznr 

The problem also exists under Windows 10.

The text was updated successfully, but these errors were encountered:

Что такое all zip


  • Более 150 000 оригинальных запчастей по каталогам любого производителя, которые идеально подойдут для Вашего оборудования;
  • Наличие 5 500 позиций запчастей для бытовых инструментов;
  • Минимальные сроки доставки по городам Краснодарского края и всей России благодаря собственной системе логистики;
  • Клиенты Альянс самостоятельно выбирают способ оплаты деталей бытовых электроприборов;
  • Дополнительный сервис по установке купленных у нас запчастей для приборов

ИП Бутиков Анатолий Васильевич
ОГРНИП 316236600064906

Zip and unzip files

Zipped (compressed) files take up less storage space and can be transferred to other computers more quickly than uncompressed files. In Windows, you work with zipped files and folders in the same way that you work with uncompressed files and folders. Combine several files into a single zipped folder to more easily share a group of files.

To zip (compress) a file or folder

  1. Locate the file or folder that you want to zip.
  2. Press and hold (or right-click) the file or folder, select (or point to) Send to, and then select Compressed (zipped) folder.

To unzip (extract) files or folders from a zipped folder

  1. Locate the zipped folder that you want to unzip (extract) files or folders from.
  2. Do one of the following:
    • To unzip a single file or folder, open the zipped folder, then drag the file or folder from the zipped folder to a new location.
    • To unzip all the contents of the zipped folder, press and hold (or right-click) the folder, select Extract All, and then follow the instructions.
  • To add files or folders to a zipped folder you created earlier, drag them to the zipped folder.
  • If you add encrypted files to a zipped folder, they’ll be unencrypted when they’re unzipped, which might result in unintentional disclosure of personal or sensitive information. For that reason, we recommend that you avoid zipping encrypted files.
  • Some types of files, like JPEG images, are already highly compressed. If you zip several JPEG pictures into a folder, the total size of the folder will be about the same as the original collection of pictures.

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *