Cannot add task ‘wrapper‘ as a task with that name already exists.

Posted 柳鲲鹏

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Cannot add task ‘wrapper‘ as a task with that name already exists.相关的知识,希望对你有一定的参考价值。

  • 具体错误
Build file 'D:\\Nanjing-SVN\\UVCCameraProDemoLTS-v5.02\\build.gradle' line: 27

A problem occurred evaluating root project 'UVCCameraProDemoLTS-v5.02'.
> Cannot add task 'wrapper' as a task with that name already exists.

* Try:
Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Exception is:
org.gradle.api.GradleScriptException: A problem occurred evaluating root project 'UVCCameraProDemoLTS-v5.02'.
	at org.gradle.groovy.scripts.internal.DefaultScriptRunnerFactory$ScriptRunnerImpl.run(DefaultScriptRunnerFactory.java:93)
  • 解决办法
task wrapper(type: Wrapper) 
	gradleVersion = '4.4'

改为

wrapper 
	gradleVersion = '4.4'

以上是关于Cannot add task ‘wrapper‘ as a task with that name already exists.的主要内容,如果未能解决你的问题,请参考以下文章

Tomcat报错:HTTP Status 500 - Wrapper cannot find servlet class

typeError: cannot read property '_wrapper' of undefined

ImportError: cannot import name ‘_maybe_get_pandas_wrapper_freq‘ from ‘statsmodels.tsa.filters._util

org.gradle.api.internal.tasks.DefaultTaskInputs$TaskInputUnionFileCollection cannot be cast to org.g

org.gradle.api.internal.tasks.DefaultTaskInputs$TaskInputUnionFileCollection cannot be cast to org.g

pyinotify ERROR] add_watch: cannot watch