Gradle record screenshot task failing - but works
- Dominant language
- Kotlin
- Stars
- 291
- Forks
- 19
- PR merge metrics
- No merged PRs in 30d
Description
When I run the command `./gradlew :app:connectedAndroidTest -Pdropshots.record` I get the following error:
```
* What went wrong:
A problem was found with the configuration of task ':app:updateDebugAndroidTestScreenshots' (type 'PullScreenshotsTask').
- Gradle detected a problem with the following location: '.../src/androidTest/screenshots'.
Reason: Task ':app:mergeBaseDebugAndroidTestAssets' uses this output of task ':app:updateDebugAndroidTestScreenshots' 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:
1. Declare task ':app:updateDebugAndroidTestScreenshots' as an input of ':app:mergeBaseDebugAndroidTestAssets'.
2. Declare an explicit dependency on ':app:updateDebugAndroidTestScreenshots' from ':app:mergeBaseDebugAndroidTestAssets' using Task#dependsOn.
3. Declare an explicit dependency on ':app:updateDebugAndroidTestScreenshots' from ':app:mergeBaseDebugAndroidTestAssets' using Task#mustRunAfter.
```
How ever, the screenshots are done as expected. Still have to manually delete the screenshots folder in order to have them generated while this error is happening.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.