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

后端 未结 15 1752
不知归路
不知归路 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:43

    For A novice like me, who encountered the situation for the first time and was not able to delete the .lock file or the .gradle folder,

    In windows 10 or others, restart the pc using safe mode,(windows key + R ---> msconfig ----> select boot, boot in safe mode----> restart) then delete the files, (this should delete the files and folder)

    then in normal mode, restart android studio and sync gradle to download the appropriate version (hopefully the project should work now)

提交回复
热议问题