Estevan Fick
05/22/2025, 2:09 PM./gradlew :module:sourceSets
, the screenshotTest is shown on the list, but when I try to use it on the gradle script, I get "SourceSet with name 'screenshotTest' not found. Is this the correct way to add a different directory?Estevan Fick
05/22/2025, 2:10 PMandroid {
experimentalProperties["android.experimental.enableScreenshotTest"] = true
sourceSets {
named("screenshotTest") {
}
}
}
Vampire
05/22/2025, 2:23 PMnamed("...")
, as named("...")
requires that the element in question is already registered at the time you are calling that.
How to properly do it most probably depends on way more context. Besides that Android is always "a bit special". 😄Phạm Lam
05/22/2025, 3:41 PM