What is the Android Cache Fix plugin and why do I need to solve my own cache misses?
summary
The Android cache fix plugin detects real cache misses by comparing two builds and fixes specific AGP bugs: it rewrites path-sensitive task inputs (absolute→relative) via a “Gradle Monty” snapshot-and-restore workaround, converts Room’s schema arg into a command-line argument provider and shuffles outputs into task-specific dirs before merging, and disables caching for cheap copy/jar tasks that are slower to fetch than reexecution. Works across old AGP/Gradle versions, fixes many misses today, and points to AGP fixes (some require upstream changes).
AI-written summary · about
chapters (12)
- 0:00Introduction and speaker background
- 2:28Why fast builds matter
- 4:57What is build caching
- 5:19What is a cache miss
- 8:50How the plugin works
- 13:04Room annotation processor issues
- 19:04Room plugin fixes
- 21:14Negative cache avoidance savings
- 23:19Disabling bad cache tasks
- 24:22Why the plugin exists
- 25:05Gradle Enterprise features
- 26:31Resources and closing
related talks
16mCacheSifter: Sifting Cache Files for Boosted Mobile Performance and Lifetime
28mEscaping from a 'It Kinda Works' ProGuard Setup
29m10 Ways To Improve Your Android App Performance
43mWhere Is My Cache? Architectural Patterns for Caching ...
07mCache me if you can: Wayfair's secret to snappier apps
38mLow effort, High impact Android performance wins
45mFinding and Fixing Performance Problems
45mCaching in Applications Still Matters
