gradle/gradle · error · UncheckedIOException
Failed to normalize content of '%s'.
Error message
Failed to normalize content of '%s'.
What it means
Error "Failed to normalize content of '%s'." thrown in gradle/gradle.
Source
Thrown at platforms/core-execution/normalization-java/src/main/java/org/gradle/internal/fingerprint/classpath/impl/ClasspathFingerprintingStrategy.java:235
}
/**
* Returns either the normalized content hash of the given regular file,
* or {@code null} if a resource filter has filtered the file out.
*/
@Nullable
private HashCode hashContent(RegularFileSnapshot fileSnapshot, RelativePathSupplier relativePath) {
RegularFileSnapshotContext fileSnapshotContext = new DefaultRegularFileSnapshotContext(() -> Iterables.toArray(relativePath.getSegments(), String.class), fileSnapshot);
try {
if (ZipHasher.isZipFile(fileSnapshotContext.getSnapshot().getName())) {
return cacheService.hashFile(fileSnapshotContext, zipHasher, zipHasherConfigurationHash);
} else if (relativePath.isRoot()) {
return nonZipFingerprintingStrategy.determineNonJarFingerprint(fileSnapshot.getHash());
} else {
return classpathResourceHasher.hash(fileSnapshotContext);
}
} catch (IOException e) {
throw new UncheckedIOException(failedToNormalize(fileSnapshot), e);
} catch (UncheckedIOException e) {
throw new UncheckedIOException(failedToNormalize(fileSnapshot), e.getCause());
}
}
private String failedToNormalize(RegularFileSnapshot snapshot) {
return String.format("Failed to normalize content of '%s'.", snapshot.getAbsolutePath());
}
}
@Override
public FingerprintHashingStrategy getHashingStrategy() {
return FingerprintHashingStrategy.KEEP_ORDER;
}
}
View on GitHub (pinned to 534f27719b)
Solutions
- Normalizing the classpath entry content failed. Check that the jar file is valid and readable; see the nested cause.
When it happens
Trigger: Thrown at platforms/core-execution/normalization-java/src/main/java/org/gradle/internal/fingerprint/classpath/impl/ClasspathFingerprintingStrategy.java:235 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/4f8ac629e1e7c955.
Report an issue: GitHub.