gpt4 book ai didi

gradle - 无法向守护程序发送消息

转载 作者:行者123 更新时间:2023-12-03 02:42:07 25 4
gpt4 key购买 nike

当我执行“gradle assembleRelease”时,有时会出现错误:

03:23:01.987 [ERROR] [org.gradle.BuildExceptionReporter] FAILURE: Build failed with an exception.
03:23:01.987 [ERROR] [org.gradle.BuildExceptionReporter]
03:23:01.988 [ERROR] [org.gradle.BuildExceptionReporter] * What went wrong:
03:23:01.988 [ERROR] [org.gradle.BuildExceptionReporter] Could not dispatch a message to the daemon.
03:23:01.988 [ERROR] [org.gradle.BuildExceptionReporter]
03:23:01.988 [ERROR] [org.gradle.BuildExceptionReporter] * Exception is:
03:23:01.989 [ERROR] [org.gradle.BuildExceptionReporter] org.gradle.launcher.daemon.client.DaemonConnectionException: Could not dispatch a message to the daemon.
03:23:01.989 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.daemon.client.DaemonClientConnection.dispatch(DaemonClientConnection.java:72)
03:23:01.990 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.daemon.client.DaemonClient.executeBuild(DaemonClient.java:167)
03:23:01.990 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.daemon.client.SingleUseDaemonClient.execute(SingleUseDaemonClient.java:55)
03:23:01.990 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.daemon.client.SingleUseDaemonClient.execute(SingleUseDaemonClient.java:37)
03:23:01.990 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.RunBuildAction.run(RunBuildAction.java:43)
03:23:01.990 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.internal.Actions$RunnableActionAdapter.execute(Actions.java:170)
03:23:01.991 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:237)
03:23:01.991 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:210)
03:23:01.991 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRuntimeValidationAction.java:35)
03:23:01.991 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRuntimeValidationAction.java:24)
03:23:01.992 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:206)
03:23:01.992 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:169)
03:23:01.992 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:33)
03:23:01.992 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:22)
03:23:01.992 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.Main.doAction(Main.java:33)
03:23:01.993 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.bootstrap.EntryPoint.run(EntryPoint.java:45)
03:23:01.993 [ERROR] [org.gradle.BuildExceptionReporter] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
03:23:01.993 [ERROR] [org.gradle.BuildExceptionReporter] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
03:23:01.993 [ERROR] [org.gradle.BuildExceptionReporter] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
03:23:01.993 [ERROR] [org.gradle.BuildExceptionReporter] at java.lang.reflect.Method.invoke(Method.java:606)
03:23:01.994 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.bootstrap.ProcessBootstrap.runNoExit(ProcessBootstrap.java:54)
03:23:01.994 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.bootstrap.ProcessBootstrap.run(ProcessBootstrap.java:35)
03:23:01.994 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.GradleMain.main(GradleMain.java:23)
03:23:01.994 [ERROR] [org.gradle.BuildExceptionReporter] Caused by: org.gradle.messaging.remote.internal.MessageIOException: Could not write message org.gradle.launcher.daemon.protocol.Finished@266bad10 to '/0:0:0:0:0:0:0:1:53366'.
03:23:01.994 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.messaging.remote.internal.inet.SocketConnection.dispatch(SocketConnection.java:111)
03:23:01.995 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.daemon.client.DaemonClientConnection.dispatch(DaemonClientConnection.java:63)
03:23:01.995 [ERROR] [org.gradle.BuildExceptionReporter] ... 22 more
03:23:01.995 [ERROR] [org.gradle.BuildExceptionReporter] Caused by: java.io.IOException: Broken pipe
03:23:01.995 [ERROR] [org.gradle.BuildExceptionReporter] at sun.nio.ch.FileDispatcherImpl.write0(Native Method)
03:23:01.996 [ERROR] [org.gradle.BuildExceptionReporter] at sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:47)
03:23:01.996 [ERROR] [org.gradle.BuildExceptionReporter] at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:93)
03:23:01.996 [ERROR] [org.gradle.BuildExceptionReporter] at sun.nio.ch.IOUtil.write(IOUtil.java:51)
03:23:01.996 [ERROR] [org.gradle.BuildExceptionReporter] at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:487)
03:23:01.996 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.messaging.remote.internal.inet.SocketConnection$SocketOutputStream.flush(SocketConnection.java:236)
03:23:01.997 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.messaging.remote.internal.inet.SocketConnection.dispatch(SocketConnection.java:109)
03:23:01.997 [ERROR] [org.gradle.BuildExceptionReporter] ... 23 more

gradle版本是2.7。

我找不到有关此错误的任何信息,想知道它可以给我一些启发,谢谢!

最佳答案

尝试重新启动守护程序。也许是因为某种原因被杀死
gradle --stop && gradle clean build

关于gradle - 无法向守护程序发送消息,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34940056/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com