-
Notifications
You must be signed in to change notification settings - Fork 42
Description
When using AGP 8.12 I get the following error:
org.gradle.internal.execution.WorkValidationException: Some problems were found with the configuration of task ':app:generateReleaseComposePreviewRobolectricTests' (type 'GenerateComposePreviewRobolectricTestsTask').
-
Gradle detected a problem with the following location: '/.../build/generated/roborazzi/preview-screenshot'.
Reason: Task ':app:compileDebugUnitTestKotlin' uses this output of task ':app:generateReleaseComposePreviewRobolectricTests' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed.
Possible solutions:
- Declare task ':app:generateReleaseComposePreviewRobolectricTests' as an input of ':app:compileDebugUnitTestKotlin'.
- Declare an explicit dependency on ':app:generateReleaseComposePreviewRobolectricTests' from ':app:compileDebugUnitTestKotlin' using Task#dependsOn.
- Declare an explicit dependency on ':app:generateReleaseComposePreviewRobolectricTests' from ':app:compileDebugUnitTestKotlin' using Task#mustRunAfter.
For more information, please refer to https://docs.gradle.org/9.0.0/userguide/validation_problems.html#implicit_dependency in the Gradle documentation.
-
Gradle detected a problem with the following location: '/.../build/generated/roborazzi/preview-screenshot'.
Reason: Task ':app:kspDebugUnitTestKotlin' uses this output of task ':app:generateReleaseComposePreviewRobolectricTests' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed.
Possible solutions:
- Declare task ':app:generateReleaseComposePreviewRobolectricTests' as an input of ':app:kspDebugUnitTestKotlin'.
- Declare an explicit dependency on ':app:generateReleaseComposePreviewRobolectricTests' from ':app:kspDebugUnitTestKotlin' using Task#dependsOn.
- Declare an explicit dependency on ':app:generateReleaseComposePreviewRobolectricTests' from ':app:kspDebugUnitTestKotlin' using Task#mustRunAfter.
Any idea what may be the root cause here?