go to ~/.gradle/daemon directory delete xx directory (xx is Gradle version) you can check Gradle version with gradle -v command.