This question has already been answered:

I read in English StackOverlow. and on Habré. They say that the stable version of gradle is 2.4. Tipo because of it the assembly comes from 10-20 seconds.

My build is more than a minute.

4 cores * 3000 12 gigov operatives.

Iron has nothing to do with it. Therefore, the blame for all Gradle. They say from 2.1 degrees slower. And already with 2.4 all the bugs and errors are fixed.

Instead of 2 minutes it was 10-20 seconds.

Tell me. Why Android Studio does not allow upgrading to 2.4. Since the site they have written the most stable is 2.1. What they think there is.

And how can you upgrade to Androi Studio 2.4. And even better in 3.0

Reported as a duplicate by pavlofff android 1 Sep '16 at 11:14 .

A similar question was asked earlier and an answer has already been received. If the answers provided are not exhaustive, please ask a new question .

    1 answer 1

    The version of the collector and the version of Gradle are slightly different concepts. I can operate with the wrong names, but the current version of Gradle in my 2.14, and the collector corresponds to the version of your Android Studio - 2.1.

    To update gradle, either in the gradle.wrapper file in your project, change the version to the current one and specify in the settings that the gradle is updated remotely - it seems it is by default (that is, you do not need to do anything in the settings) or download the latest version from the site. And in the settings, specify its location.

    As for the assembly speed, I'm not sure that it will happen much faster.

    And not so much important RAM, how much the processor, as well as the frequency of the RAM and its timings. I once increased the amount of memory in half, which in general did not affect the speed of the assembly. But on MacOS with a more “clever” memory management mechanism with the same amount of memory and even lower frequency - everything works much faster