我试图改变的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
?
这听起来像它的相关的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.