Flutter:尝试构建应用程序时 Gradle 失败

问题描述 投票:0回答:1

当我构建时,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.
flutter gradle
1个回答
1
投票

这可能与你的缓存有关。

如果您使用的是 Windows 操作系统,请清除此目录中的

.lock
缓存(在目录本身中搜索 .lock 并删除删除了 .lock 扩展名的所有内容):

C:\Users.gradl

© www.soinside.com 2019 - 2024. All rights reserved.