Gradle无法刷新 [英] Gradle failed to refresh

查看:168
本文介绍了Gradle无法刷新的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每次我尝试添加,编译'com.soundcloud.android:android-crop:1.0.0@aar'
我收到以下错误

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


推荐答案

清除您的gradle缓存 - >删除整个 .gradle 文件夹 - >项目目录。不要担心它会被重建。同样适用于 .gradle - >主目录。

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.

这篇关于Gradle无法刷新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆