cashapp / paparazzi

Render your Android screens without a physical device or emulator
https://cashapp.github.io/paparazzi/
Apache License 2.0
2.28k stars 214 forks source link

1.3.4-SNAPSHOT causes configuration cache error when used with Crashlytics #1369

Closed joharei closed 5 months ago

joharei commented 6 months ago

Description After updating to 1.3.4-SNAPSHOT, I am getting an error that seems like it's related to Gradle's configuration cache and a clash with the Crashlytics plugin:

Configuration cache state could not be cached: field `__projectResourceDirs__` of task `:app:preparePaparazziDebugResources` of type `app.cash.paparazzi.gradle.PrepareResourcesTask`: error writing value of type 'org.gradle.api.internal.provider.DefaultListProperty'
> Failed to query the value of task ':app:mapDebugSourceSetPaths' property 'extraGeneratedResDir'.
   > Querying the mapped value of provider(java.util.Set) before task ':app:injectCrashlyticsMappingFileIdDebug' has completed is not supported

If I run the task without configuration cache it runs fine:

./gradlew --no-configuration-cache verifyPaparazziDebug

This error does not happen on 1.3.3.

Steps to Reproduce

  1. Add the Crashlytics plugin to the project
  2. Update to Paparazzi 1.3.4-SNAPSHOT
  3. Run verifyPaparazzi

Expected behavior Screenshot tests should run.

Additional information:

jrodbx commented 6 months ago

@kevinzheng-ap i've seen similar when migrating to AGP 8 apis; mind taking a look if you have cycles?