解决AndroidStudio编译时报错:Timeout waiting to lock artifact cache (/Users/zhuxiaocheng/.gradle/c
作者: android 发布时间: 2019-08-20 浏览: 8000 次 编辑1,错误描述
今天在Android Studio中,运行程序的时候,出现了如下所示的错误:
Timeout waiting to lock artifact cache (/Users/zhuxiaocheng/.gradle/caches/modules-2). It is currently in use by another Gradle instance. Owner PID: 17358 Our PID: 16085 Owner Operation: Our operation: Lock file: /Users/zhuxiaocheng/.gradle/caches/modules-2/modules-2.lock <img src="https://image.niwoxuexi.com/blog/content/7d6872b7bf-wechatfa0ec2aa5dc17edcb1f904db90561626.png">
2, 解决方案
选择【File】–>【Invalidate Caches/Restart】,然后弹出如下所示的弹框
ok,完美解决问题
标签:
Android studio
Timeout waiting to lock artifact cache
解决AndroidStudio编译时报错:Timeout waiting to lock artifact cache