Niklas Rosencrantz
Niklas Rosencrantz

Reputation: 26662

Cannot refresh gradle project in IntelliJ

Why does this happen? There is no reason, I'm just trying to press the refresh button and it never works.

Error:Timeout waiting to lock buildscript class cache for build file '/home/dac/proj/spring-boot-master/spring-boot-samples/spring-boot-sample-jetty-jsp/build.gradle' (/home/dac/.gradle/caches/2.3/scripts/build_68kj36zmyqst1ei1zilpv1rml/ProjectScript/buildscript). It is currently in use by another Gradle instance.
Owner PID: unknown
Our PID: 9475
Owner Operation: unknown
Our operation: Initialize cache
Lock file: /home/dac/.gradle/caches/2.3/scripts/build_68kj36zmyqst1ei1zilpv1rml/ProjectScript/buildscript/cache.properties.lock

Upvotes: 0

Views: 1220

Answers (1)

Benjamin Muschko
Benjamin Muschko

Reputation: 33456

The issue you are seeing is likely related to GRADLE-2795. Try to upgrade Gradle to 2.14 (which is the latest final version of Gradle at the time of writing). It should have this issue fixed.

Upvotes: 2

Related Questions