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

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

    1.Check whether multiple instance of java.exe running then find out why they are running in my case i have opened command prompt it need java instance. open task manager and end task of cmd.exe If you don't want it to further happen remove path from environment variables and use embedded android studio JDK.

    2.Delete lock file in /.gradle/cache goto task manager and close all instance of java.exe In android studio click on file invalidate caches/restart

提交回复
热议问题