Up till now, I’ve been successfully running two gradle run tasks concurrently (of different modules in the same multi-module project). However, starting today (as far as I can tell), gradle fails running the 2nd run task due to the following error:
Timeout waiting to lock file hash cache (X:\@sdks\gradle\caches\3.4.1\fileHashes). It is currently in use by another Gradle instance. Owner PID: 2688 Our PID: 10216 Owner Operation: Our operation: Lock file: X:\@sdks\gradle\caches\3.4.1\fileHashes\fileHashes.lock
I’m currently using gradle 3.4.1, but the issue remains with older versions of gradle as well.
Also tried running the tasks with --no-daemon as well as emptying gradle’s caches directory, but to no avail.
Mind you, this is not a CI environment with gradle running in different containers or whatnot, this is a simple local gradle installation.
I’m really not sure what has changed (or could have changed) which would cause this. If anyone has any pointers, it would be much appreciated.
Thanks a lot