【问题标题】:Could not update \.gradle\caches\4.4\file-changes\last-build.bin无法更新 \.gradle\caches\4.4\file-changes\last-build.bin
【发布时间】:2018-08-02 09:57:53
【问题描述】:

我是 Jenkins 的新手,正在尝试设置构建自动化和测试,但每当我运行构建时它都会失败,并给出以下错误:

FAILURE: Build failed with an exception.

* What went wrong:
Could not update C:\Users\Embrace-IT\.gradle\caches\4.4\file-changes\last-build.bin
> C:\Users\Embrace-IT\.gradle\caches\4.4\file-changes\last-build.bin (Access is denied)

【问题讨论】:

    标签: android jenkins continuous-integration


    【解决方案1】:

    转到目录 C:\Users\Embrace-IT.gradle\caches\4.4\file-changes\ 并检查文件“last-build.bin”的属性。如果是隐藏的,则取消隐藏,也可以查看权限。

    【讨论】:

    • 非常感谢@Vishal Chaudhary :)
    【解决方案2】:

    这对我来说是固定的: 删除路径“C:\Users\username\.gradle\caches\4.4\file-changes”中的“last-build.bin”文件,如果你有一个新的项目。 我不知道是否会影响旧文件

    其他版本: 删除路径“C:\Users\username\.gradle\caches\x.x\file-changes”中的“last-build.bin”文件,如果你有一个新的项目。 我不知道是否会影响旧文件

    I had see more forums and i did not find solution to this.

    希望对你有帮助。

    扬德·桑切斯

    【讨论】:

      猜你喜欢
      • 2021-04-23
      • 2022-06-28
      • 1970-01-01
      • 2018-11-27
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-01-20
      • 1970-01-01
      相关资源
      最近更新 更多