Execution failed for task ':checkstyleMain'.
> Cannot access input property 'config.inputFiles' of task ':checkstyleMain'. Accessing unreadable inputs or outputs is not supported. Declare the task as untracked by using Task.doNotTrackState(). For more information, please refer to https://docs.gradle.org/8.5/userguide/incremental_build.html#disable-state-tracking in the Gradle documentation.
Is there a question hidden somewhere?
I guess I forgot to put the question, problem is even though all the checkstyle rules are satisfied however it gives checkstyle errors, what can be the issue and how to solve? btw the os is windows
It does not even start to check the actual rules.
The error your are getting is before, when Gradle tries to snapshot the inputs for the up-to-date checks.
During that it found some file it cannot read, so cannot snapshot.
It advises you to disable the up-to-date checks, but that is imho a bad advice, as it means that the task will always run, while it is unlikely that it is correct that any of the inputs is unreadable.
You should check the configured inputs for that task to find out why this error is actually happening, instead of disabling an important feature to work-around the problem.