tony
04/08/2022, 10:17 PM1 problem was found storing the configuration cache.
- Task `:app:resignDebug` of type `com.company.ReSignTask`: value 'map(org.gradle.api.file.RegularFile map(property(org.gradle.api.file.Directory, property(org.gradle.api.file.Directory, property(org.gradle.api.file.Directory, map(org.gradle.api.file.Directory flatmap(provider(task 'packageDebug', class com.android.build.gradle.tasks.PackageApplication)) check-type()))))) check-type())' failed to unpack provider
Any idea why this failure would appear in a test context but not when executed in a real context? It is admittedly a fairly complex chain of providers...
(Gradle 7.4.1, AGP 7.0.4)tony
04/08/2022, 11:02 PMtony
04/09/2022, 12:16 AMProvider<RegularFile>
inputs at configuration time?Phil Glass
04/09/2022, 7:34 AMtony
04/09/2022, 5:01 PMtony
04/09/2022, 5:03 PMtony
04/09/2022, 5:10 PM0 problems were found storing the configuration cache.
See the complete report at file:///...../build/reports/configuration-cache/8jv613vpgs12l1jt7kvolgyak/c5cqx0h8dlcjykb6opxpucv6s/configuration-cache-report.html
FAILURE: Build failed with an exception.
* What went wrong:
Could not determine the dependencies of task ':app:resignDebug'.
> Failed to query the value of task ':app:resignDebug' property 'packageFile'.
> java.lang.NullPointerException (no error message)
I feel like those two things (0 problems + failure) are contradicting each othertony
04/09/2022, 5:14 PMPhil Glass
04/09/2022, 5:34 PMtaskProvider.map { it.someProperty.get() }
instead of taskProvider.flatMap { it.someProperty }
), but beyond that I'm out of my depth. 😛tony
04/09/2022, 5:52 PM