无法在Gradle中使用GradleUserHomeScopeServices.createFileAccessTimeJournal()错误创建FileAccessTimeJournal类型的服务 [英] Could not create service of type FileAccessTimeJournal using GradleUserHomeScopeServices.createFileAccessTimeJournal() error in gradle

查看:157
本文介绍了无法在Gradle中使用GradleUserHomeScopeServices.createFileAccessTimeJournal()错误创建FileAccessTimeJournal类型的服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

VS Code 中构建 flutter 应用程序时,我遇到了这个问题,但我找不到此问题的任何简单解决方案.请帮助我解决此问题.

I am facing this issue while building flutter apps in VS Code and I could not find any simple solution for this issue. Please help me resolve this issue.

失败:构建失败,并出现异常.

FAILURE: Build failed with an exception.

出了什么问题

无法使用GradleUserHomeScopeServices.createFileAccessTimeJournal()创建FileAccessTimeJournal类型的服务.等待锁定日记缓存(/home/jatin/.gradle/caches/journal-1)的超时.当前,另一个Gradle实例正在使用它.所有者PID:3813我们的PID:5034业主经营:我们的运作:锁定文件:/home/jatin/.gradle/caches/journal-1/journal-1.lock尝试:使用--stacktrace选项运行以获取堆栈跟踪.使用--info或--debug选项运行,以获取更多日志输出.与--scan一起运行以获得完整的见解.

Could not create service of type FileAccessTimeJournal using GradleUserHomeScopeServices.createFileAccessTimeJournal(). Timeout waiting to lock journal cache (/home/jatin/.gradle/caches/journal-1). It is currently in use by another Gradle instance. Owner PID: 3813 Our PID: 5034 Owner Operation: Our operation: Lock file: /home/jatin/.gradle/caches/journal-1/journal-1.lock Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

https://help.gradle.org

在1m 2s内完成失败
正在运行Gradle任务"assembleDebug" ...
正在执行Gradle任务"assembleDebug"…完成63.5s
Gradle任务assembleDebug失败,退出代码为1

BUILD FAILED in 1m 2s
Running Gradle task ‘assembleDebug’…
Running Gradle task ‘assembleDebug’… Done 63.5s
Gradle task assembleDebug failed with exit code 1

由于我是一个完整的初学者,请告诉我完整的解决方案.我也不知道如何使用 stacktrace 选项.(*尝试:使用-stacktrace 选项运行以获取堆栈跟踪.使用-info -debug 选项运行,以获取更多日志输出.使用-scan 运行以获取全部见解.)

Please tell me full solution as I am a complete beginner. I also do not know how to use the stacktrace option .(* Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.)

推荐答案

遇到相同的问题,这些操作对我有用:关闭IDE.转到Windows任务管理器->进程.在此处找到java.exe进程并结束它们.

Had the same problem, these actions worked for me: Close IDE. Go to windows task manager -> processes. Find java.exe processes there and end them.

希望这会有所帮助:)

这篇关于无法在Gradle中使用GradleUserHomeScopeServices.createFileAccessTimeJournal()错误创建FileAccessTimeJournal类型的服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆