gradle/gradle · error · OutputFileSnapshottingException
Cannot snapshot output property '%s'.
Error message
Cannot snapshot output property '%s'.
What it means
Error "Cannot snapshot output property '%s'." thrown in gradle/gradle.
Source
Thrown at platforms/core-execution/execution/src/main/java/org/gradle/internal/execution/impl/DefaultOutputSnapshotter.java:46
public class DefaultOutputSnapshotter implements OutputSnapshotter {
private final FileCollectionSnapshotter fileCollectionSnapshotter;
public DefaultOutputSnapshotter(FileCollectionSnapshotter fileCollectionSnapshotter) {
this.fileCollectionSnapshotter = fileCollectionSnapshotter;
}
@Override
public ImmutableSortedMap<String, FileSystemSnapshot> snapshotOutputs(UnitOfWork work, File workspace) {
ImmutableSortedMap.Builder<String, FileSystemSnapshot> builder = ImmutableSortedMap.naturalOrder();
work.visitOutputs(workspace, new OutputVisitor() {
@Override
public void visitOutputProperty(String propertyName, TreeType type, OutputFileValueSupplier value) {
FileSystemSnapshot snapshot;
try {
snapshot = fileCollectionSnapshotter.snapshot(value.getFiles());
} catch (Exception ex) {
throw new OutputFileSnapshottingException(propertyName, ex);
}
builder.put(propertyName, snapshot);
}
});
return builder.build();
}
}
View on GitHub (pinned to 534f27719b)
Solutions
- Snapshotting an output property failed. Check that the output files exist and are readable; see the nested cause.
When it happens
Trigger: Thrown at platforms/core-execution/execution/src/main/java/org/gradle/internal/execution/impl/DefaultOutputSnapshotter.java:46 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of gradle/gradle@534f27719b (2026-08-22).
Data as JSON: /api/errors/8f4fe99888f6e4e3.
Report an issue: GitHub.