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

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

    Delete .gradle folder from / and resync gradle from project.

    0 讨论(0)
  • 2020-12-05 09:55

    The lock file is there because some other gradle process (usually the daemon) is using the cache. You could stop all gradle processes to release the lock

    gradle --stop
    

    https://docs.gradle.org/current/userguide/gradle_daemon.html#sec:stopping_an_existing_daemon

    0 讨论(0)
  • 2020-12-05 09:55

    For me the only thing that worked was deleting these things inside android folder:

    • {appname}.iml
    • .idead/
    • .gradle/buildOutputCleanup/

    Posting this for myself 2 weeks from now

    0 讨论(0)
提交回复
热议问题