I\'m using Gradle to build a java project. When I run any task (assemble, test). I get randomly an error :
Could not create service of type FileHasher using
One simple cause is that gradle daemon is not started with the same environment variable. I had the same issue while changing the gradle user home.
Simply stop the daemon:
gradle --stop