


If you need to modify or add a new dependency you’ll have to disable this option else the build would fail. Note: This only works if all the dependencies are downloaded and stored in the cache once. This will not allow the gradle to access the network during build and force it to resolve the dependencies from the cache itself. This happens due to the fact that the module needs to be built from the scratch every time.Įnable gradle Offline Work from Preferences-> Build, Execution, Deployment-> Build Tools-> Gradle. A module takes 4x greater time than a jar or aar dependency. There are many cases where we need to fork the library to modify it to fit according to our needs. Generally with every new update there is a significant improvement in performance. Make sure you’re using the latest version of Gradle.

A few basic tricks can help us save those extra seconds per build and that makes a big difference to the productivity. Nevertheless one thing that is pretty common in regard to the build speeds is that it takes our precious time that in return hampers our productivity. Though every project comes up with it’s own complexity and uniqueness which causes it to have a different build speed. The gradle speed for even the simplest project is pretty slow. Speed up your Android Gradle BuildĪs our Android Studio project size increases, the gradle build performance becomes critical. In this tutorial we’ll look at things that can be done with the Gradle build to speed up the build time.
