java.lang.RuntimeException: Coulgradgradle-4.8.1-all.zip.lck

Hi. I’m trying to build a Gradle project using CircleCI. When I run the ./gradlew clean build command, I consistently encounter the following error message:

Exception in thread "main" java.lang.RuntimeException: Coulgradgradle-4.8.1-all.zip.lck
        at org.gradle.wrapper.ExclusiveleAccessManager.java:43)
        at org.gradle.wrapper.Install.createDist(Install.java:48)
        at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:107)
        at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61)

Exited with code exit status 1

I’ve tried searching for solutions online, but haven’t found anything relevant. There doesn’t seem to be any similar issue reported.

Any ideas on what might be causing this and how to fix it?

It is a bit hard to say because your output is pretty scrambled.
For example the class in the first stackframe is not ExclusiveleAccessManager but ExclusiveFileAccessManager.
And the message of the exception that it throws at line 43 is throw new RuntimeException("Could not create parent directory for lock file " + lockFile.getAbsolutePath());.

So the directory where it tries to create the lock file does not exist and cannot be created, or exists but is not a directory.

Hopefully this is enough information for you to find out what is going wrong in your case.

1 Like