Gradle :Could not create service of type FileHasher

前端 未结 11 949
南方客
南方客 2020-12-14 06:44

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         


        
11条回答
  •  情话喂你
    2020-12-14 07:26

    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.

提交回复
热议问题