3

Everytime I try to add, compile 'com.soundcloud.android:android-crop:1.0.0@aar' I get the following error

Error:Timeout waiting to lock buildscript class cache for build file 'C:\Users\De Untouchable\AndroidStudioProjects\Yora\app\build.gradle' (C:\Users\De Untouchable\.gradle\caches\2.2.1\scripts\build_3aewj3nvnlp7huq0b8xvs2ju1\ProjectScript\buildscript). It is currently in use by another Gradle instance.
Owner PID: unknown
Our PID: 5744
Owner Operation: unknown
Our operation: Initialize cache
Lock file: C:\Users\De Untouchable\.gradle\caches\2.2.1\scripts\build_3aewj3nvnlp7huq0b8xvs2ju1\ProjectScript\buildscript\cache.properties.lock
Konrad Krakowiak
  • 12,285
  • 11
  • 58
  • 45
Vondella21
  • 79
  • 3
  • 10

1 Answers1

6

clear your gradle cache -> delete the whole .gradle folder -> project directory. don't worry it will be recreated. The same is for .gradle -> home directory.

you can also go to File -> Invalidate ->Caches/Restart.

Ahmad Sanie
  • 3,678
  • 2
  • 21
  • 56