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
I was facing the same because I accidentally hit ctrl+z during build, and then the error was the same as yours.
I tried to remove the lock file but it didn't solve the problem.
Then I find all the process related to gradle by ps aux | grep gradle, and then kill -9 them all. The build backed to normal.