Faster builds on Android: from 2 minutes to 2 seconds
summary
Claims concrete steps and measured wins: use Gradle Build Scans or the profile flag to see task timings, update Gradle/JVM/Android Studio, enable caching and parallel execution and Kotlin incremental compilation, and make a development build variant to skip resources. Modularize so modules compile in parallel and only what changes. Examples include reducing a full-app build from ~30s to ~21s, a library+app iteration from 65s to 9s, and unit tests in a pure JVM module running in 1–2 seconds.
AI-written summary · about
chapters (25)
- 0:00Intro
- 0:36Why is build speed important
- 5:47What am I tackling
- 6:16Measuring your builds
- 9:19The quick wins
- 10:30Read the article
- 10:48Update Android Studio
- 11:14Instant Run
- 11:36Caching
- 13:01Incremental compilation
- 13:26Build variant
- 15:03Documentation
- 15:23Memory settings
- 16:01Modern realization
- 16:20Multiple modules
- 16:43Build in parallel
- 17:28Example
- 19:30Bluetooth example
- 21:28Split app into multiple modules
- 22:28Sample app
- 23:53Advantages of multiple modules
- 24:43Modularization
- 25:08Summary
- 25:51Multiple builds
- 26:44Thank you
related talks
30mImproving Android Build performance
19mCOMPILING...? HOW TO REDUCE YOUR WAIT TIMES AND "GET BACK TO WORK"
40mBuild times breaking your flow? Learn how to make them fast!
33mIMPROVING ANDROID BUILD PERFORMANCE
31mImproving Android Build performance
32mFaster Feedback Cut Gradle Build and Pipeline Times in Half
48mOptimizing Android Build Performance
30mHow we brought down our build times. General optimization tips
