Measure the correct thing
| Mechanism | Reuses or avoids |
|---|---|
| Configuration cache | Configuration work for a compatible task graph |
| Build cache | Previously produced task outputs |
| Up-to-date checks | Unnecessary execution when inputs and outputs are unchanged |
The configuration-cache guide explains compatibility and invalidation. A faster second build alone does not identify which mechanism helped.
Run a controlled comparison
./gradlew :app:assembleDebug --configuration-cache
./gradlew :app:assembleDebug --configuration-cache
Keep the same environment and requested tasks. Inspect whether Gradle stored and then reused the configuration entry. Do not compare a cold dependency download with a warm build and attribute the entire difference to configuration caching.
Read the incompatibility report
Tasks that access project state during execution or depend on undeclared configuration inputs may be incompatible. Use the generated report to identify the owning task or plugin.
Prefer a supported plugin update or a correct task implementation over globally suppressing problems. Custom tasks should use declared inputs, outputs and supported providers rather than reaching back into mutable project configuration at execution time.
Preserve build correctness
A cache hit is not the only acceptance criterion. Change a relevant input and verify that Gradle invalidates or reconfigures appropriately. A task that reuses stale configuration can produce the wrong artifact quickly.
The Gradle performance guide recommends measurement rather than speculative flags. Benchmark a representative set of developer and CI tasks.
Document the result
Record Gradle, AGP, JDK, task invocation, cache reuse and measured timings. APKLint's Build Analyzer can help inspect custom task patterns, but it cannot reproduce your environment or prove cache correctness from a build fragment. Keep the actual Gradle reports with the optimization change.
Sources and further reading
Reference review: 22 September 2026. Examples illustrate the workflow; check your installed versions, release artifact and account-specific Console requirements before applying them. This guide is not a claim that APKLint executed your project or verified your private account.



