Intellij 2019.1 Gradle委托的IDE调试因错误而结束

时间:2019-04-17 06:56:06

标签: java gradle intellij-idea

    我创建了简单的intellij Run / Debug配置来启动主类。
  • 我的想法是将构建委托给gradle,以避免注释处理器带来麻烦。
  • 我正在使用gradle 5.4和intellij 2019.1

当我点击调试按钮时,它最终显示为:

17:10:21: Executing task 'Main.main()'...

Connected to the target VM, address: '127.0.0.1:61876', transport: 'socket'
> Task :wrapper

BUILD SUCCESSFUL in 7s
1 actionable task: 1 executed
Unable to start the daemon process.
This problem might be caused by incorrect configuration of the daemon.
For example, an unrecognized jvm option is used.
Please refer to the User Manual chapter on the daemon at https://docs.gradle.org/5.4/userguide/gradle_daemon.html
Process command line: C:\Program Files\Java\jdk1.8.0_201\bin\java.exe -XX:MaxMetaspaceSize=256m -XX:+HeapDumpOnOutOfMemoryError -agentlib:jdwp=transport=dt_socket,server=n,suspend=y,address=61876 -Xms256m -Xmx512m -Dfile.encoding=windows-1252 -Duser.country=SK -Duser.language=sk -Duser.variant -cp C:\Users\xxx\.gradle\wrapper\dists\gradle-5.4-bin\59btlbly62hzjka9h1c4c86kd\gradle-5.4\lib\gradle-launcher-5.4.jar org.gradle.launcher.daemon.bootstrap.GradleDaemon 5.4
Please read the following process output to find out more:
-----------------------
ERROR: transport error 202: connect failed: Connection refused
ERROR: JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(510)
JDWP exit error AGENT_ERROR_TRANSPORT_INIT(197): No transports initialized [debugInit.c:750]

Disconnected from the target VM, address: '127.0.0.1:61876', transport: 'socket'
17:10:29: Task execution finished 'Main.main()'.

我有另一个gradle项目,也已委托给gradle,并且该项目运行良好。我无法找出导致问题的原因。

以下是成功的控制台输出: enter image description here

0 个答案:

没有答案