Description
When bumping a gradle dependency version that is packaged as an AAR with resources, the :preparePaparazziResources task doesn't correctly rerun and uses an older cached version from local/remote gradle cache. This can cause issues loading resources when the exploded aar directory no longer exists in your local gradle home cache directory.
Steps to Reproduce
Run sample with a dependency that is an AAR and refrence a resource like drawable or string. Using an older version then latest helps illustrate issue.
Bump dependency version to latest version (test case is version 0.65.0)
Re-run same test and see error message similar to the following.
Heads up, when debugging incorrect cache hits/misses, -Dorg.gradle.caching.debug=true property is very helpful understand the caching layer without relying on gradle build scans (docs).
Description When bumping a gradle dependency version that is packaged as an AAR with resources, the
:preparePaparazziResources
task doesn't correctly rerun and uses an older cached version from local/remote gradle cache. This can cause issues loading resources when the exploded aar directory no longer exists in your local gradle home cache directory.Steps to Reproduce
0.65.0
)resources.json
file inbuild/intermediates/paparazzi
and see old version references inaarExplodedDirs
keyExpected behavior Test regenerates resources file and tests always pass.
Additional information: