How to improve the build speed of your Android projects

How to improve the build speed of your Android projects

5 years ago
Anonymous $9jpehmcKty

https://medium.freecodecamp.org/how-to-improve-the-build-speed-of-your-android-projects-bd49029d8602

Recently, I undertook the task of migrating the Android codebase at Kure to AndroidX. It seemed like the perfect opportunity to try and fix the build speeds of the project. Android’s build system, Gradle, has always had a bad rep for being slow and resource intensive, but I was quite surprised at how minor changes to the project’s build configuration could massively improve the build speeds.

To give you a sneak peek of the time I was able to shed from our clean builds, here’s a before and after metric from the build scan.