错误:超时等待锁定为构建文件buildscript级缓存时变化的minSdkVersion [英] Error:Timeout waiting to lock buildscript class cache for build file when change minSdkVersion

查看:317
本文介绍了错误:超时等待锁定为构建文件buildscript级缓存时变化的minSdkVersion的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图改变的minSdkVersion 的build.gradle (模块:APP)在 Android的工作室,并得到下一个错误:

I try to change minSdkVersion in build.gradle (Module: app) in Android Studio and get next error:

Error:Timeout waiting to lock buildscript class cache for build file 'E:\pathtoproject\app\build.gradle' (C:\Users\Administrator\.gradle\caches\2.2.1\scripts\build_f00bwdji3qxl7urq5chsbakgv\ProjectScript\buildscript). It is currently in use by another Gradle instance.
Owner PID: unknown
Our PID: 4592
Owner Operation: unknown
Our operation: Initialize cache
Lock file: C:\Users\Administrator\.gradle\caches\2.2.1\scripts\build_f00bwdji3qxl7urq5chsbakgv\ProjectScript\buildscript\cache.properties.lock

它是什么错误?如何更改的minSdkVersion

What is it error? How to change minSdkVersion ?

推荐答案

这听起来像它的相关的<一个href=\"https://issues.gradle.org/browse/GRADLE-2795\">https://issues.gradle.org/browse/GRADLE-2795.

This sounds like it's related to https://issues.gradle.org/browse/GRADLE-2795.

来解决,这将是删除在家居C中的最简单的方法:\\用户\\管理\\ .gradle \\缓存。这里是持有全局锁是preventing你运行你的脚本cache.properties.lock。

The easiest way to solve this will be to delete everything under C:\Users\Administrator\.gradle\caches. There is a cache.properties.lock that is holding a global lock which is preventing you from running your script.

这篇关于错误:超时等待锁定为构建文件buildscript级缓存时变化的minSdkVersion的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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