Java Gradle刷新失败
每次我尝试添加,Java Gradle刷新失败,java,android,Java,Android,每次我尝试添加,compile'com.soundcloud.android:android-crop:1.0。0@aar“ 我得到以下错误 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\
compile'com.soundcloud.android:android-crop:1.0。0@aar“
我得到以下错误
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
清除gradle缓存->删除整个
.gradle
文件夹->项目目录。别担心,它会被重新创建。这同样适用于.gradle
->主目录
您还可以转到文件->无效->缓存/重新启动。另一个Gradle实例当前正在使用它。表示另一个gradle进程正在使用资源。请停止所有gradle实例并重试。您可以在命令行中尝试
taskkill/f/pid 5744
,然后删除cache.properties.lock
,然后重试。