Gradle :Could not create service of type FileHasher

gradle

Solution

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 <pid>` them all. The build backed to normal.

Problem

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 GradleUserHomeScopeServices.createCachingFileHasher() ``` Did any one had the same issue before? Gradle V:3.5 java 8 I'm using the java plugin. Thanks,

Original source