当我建造的时候,Gradle总是被塞住超过10分钟。
这是原木
+2671 ms] FAILURE: Build failed with an exception.
[ +98 ms] * What went wrong:
[ +1 ms] Gradle could not start your build.
[ +3 ms] > Could not create service of type ChecksumService using
BuildSessionScopeServices.createChecksumService().
[ +7 ms] > Cannot lock checksums cache (/home/pavan/new_project/android/.gradle/checksums) as
it has already been locked by this process.发布于 2021-08-05 14:37:18
可能和你的缓存有关。
如果您使用的是Windows,请清除该目录中的.lock缓存(search .lock在目录本身,并删除带有.lock扩展的所有内容):
C:\Users.gradle\caches
如果你有一个Linux: /home/ ,你的用户名是/..gradle/cache
如果您有一个Mac: /Users/ ,您的用户名是/..gradle/缓存
发布于 2022-05-24 05:18:30
在Windows 10上,重新启动我的pc后,我删除了位于.gradle目录中的所有.gradle文件!


https://stackoverflow.com/questions/68668177
复制相似问题