引起:org.gradle.api.InvalidUserDataException:无法添加任务':client:test'因为具有该名称的任务已经存在

时间:2017-04-11 07:29:22

标签: node.js angular grails gradle gradlew

我无法使用anuglar2运行grails app。我使用以下命令创建了应用程序:

grails create-app <NAME> --profile angular2

当我尝试使用(./gradlew bootRun --parallel)启动它时,没有任何更改,我收到了以下错误:

FAILURE: Build failed with an exception.

* Where:
Build file '/*********/client/build.gradle' line: 15

* What went wrong:
A problem occurred evaluating project ':client'.
> Cannot add task ':client:test' as a task with that name already exists.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

或更具体:

Caused by: org.gradle.api.InvalidUserDataException: Cannot add task ':client:test' as a task with that name already exists.

我目前正在投放:

  • Gradle 3.5
  • Grails 3.2.8

我尝试更新node.js和npm

错误是与Grails有关还是与节点设置有关?

1 个答案:

答案 0 :(得分:0)

问题与我的〜/ .gradle文件夹有关。我删除了文件夹并重新初始化了gradle。