Gradle :Could not create service of type FileHasher

前端 未结 11 956
南方客
南方客 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:29

    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
    

提交回复
热议问题