-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Gradle record screenshot task failing - but works #49
Comments
Hmm, can you share what version of AGP and Kotlin you're using? It's odd
that the error message only mentioned AGP tasks, though it is the Dropshots
directory.
…On Fri, May 19, 2023, 06:20 Tomas Paronai ***@***.***> wrote:
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:update<flavor>DebugAndroidTestScreenshots' (type 'PullScreenshotsTask').
- Gradle detected a problem with the following location: '.../src/androidTest/screenshots'.
Reason: Task ':app:mergeBaseDebugAndroidTestAssets' uses this output of task ':app:update<flavor>DebugAndroidTestScreenshots' 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:update<flavor>DebugAndroidTestScreenshots' as an input of ':app:mergeBaseDebugAndroidTestAssets'.
2. Declare an explicit dependency on ':app:update<flavor>DebugAndroidTestScreenshots' from ':app:mergeBaseDebugAndroidTestAssets' using Task#dependsOn.
3. Declare an explicit dependency on ':app:update<flavor>DebugAndroidTestScreenshots' 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.
—
Reply to this email directly, view it on GitHub
<#49>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAJ4S3Q3544S3WTYCC77WJTXG5JRPANCNFSM6AAAAAAYHU3RVU>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Gradle: 8.0 |
Can replicate too. AGP: 8.1.0 I think it has to do with having different flavor of build |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When I run the command
./gradlew :app:connectedAndroidTest -Pdropshots.record
I get the following error: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.
The text was updated successfully, but these errors were encountered: