Optimizing Android Build Performance
summary
Twitter instruments Android Studio 3.0 and Gradle features to cut build time: enable the Gradle daemon, use the build cache (local + CI remote) and incremental compilation with the Java library plugin, and profile with build scans and YourKit. Modularization grows from 54 to 115 modules and clean builds fall from ~5m to ~2.5m while incremental builds hit 13 seconds. Fixes raise remote cache hit rate from 70%→80%; annotation processors and absolute paths remain common cache killers.
AI-written summary · about
chapters (10)
- 0:00Introduction and speakers
- 2:46Build performance challenges
- 8:24Gradle build improvements
- 11:11Build cache and parallelism
- 17:32Tools for understanding builds
- 22:31Debugging build issues
- 38:03Debugging Gradle and AGP
- 41:57Optimizing build parallelism
- 43:02Twitter build results and future work
- 46:59Q&A
related talks
30mImproving Android Build performance
40mImproving Android Build Performance
31mImproving Android Build performance
33mIMPROVING ANDROID BUILD PERFORMANCE
40mMake The Android Gradle Plugin Work For You
27mFaster builds on Android: from 2 minutes to 2 seconds
30mHow we brought down our build times. General optimization tips
34mWhat's new in Android development tools
