Making the most of your Gradle Builds
summary
Gradle performance improves by concrete steps: keep Gradle and the Android Gradle plugin up to date, enable the daemon and parallel execution, and use the build cache to speed even clean builds. Profile with --profile or build scans and run dependency reports (dependencies, dependencyInsight) to find and remove unused plugins and transitive libraries. Drop impossible build variants (he reports ~25% savings), centralize versions in a shared file, use buildConfigField for local secrets, use resConfigs to strip unused locales, and add a shared test source set.
AI-written summary · about
chapters (5)
- 0:00Start
- 4:16Quick Improvements: Update Your Gradle
- 5:01Quick Improvements: The Daemon
- 7:03Quick Improvements: Parallel Execution
- 12:23Remove Unused Dependencies
related talks
33mIMPROVING ANDROID BUILD PERFORMANCE
30mImproving Android Build performance
43mSqueezing the last drop of performance out of your Gradle builds (en)
31mImproving Android Build performance
36mImproving Gradle Builds
47mBuild times breaking your flow? Learn how to speed them up!
36mTop Build Performance issues in Android projects - 2023 Edition
49mGradle
