Error:Timeout waiting to lock buildscript class cache for build file when change minSdkVersion

后端 未结 15 1756
不知归路
不知归路 2020-12-05 08:55

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

Error:Timeout waitin         


        
15条回答
  •  感动是毒
    2020-12-05 09:42

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

    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.

    For Mac OSX the folder is located in ~/.gradle/caches. The Android Studio should show the proper path to the file which is causing the lock anyway.

提交回复
热议问题