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

简介: 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'
}
目录
相关文章
|
XML SQL 数据库
Error getting generated key or setting result to parameter object.必须执行该语句才能获得结果。
Error getting generated key or setting result to parameter object.必须执行该语句才能获得结果。
2711 47
|
Unix Java Linux
Runtime.exec方法之获取process id
Runtime.exec方法之获取process id
207 0
c#编程:Task不包含Task.Run
c#编程:Task不包含Task.Run
317 0
2015-03-18 current note update logic in my task
2015-03-18 current note update logic in my task
89 0
2015-03-18 current note update logic in my task
How to create unit test for product determination function module
How to create unit test for product determination function module
150 0
How to create unit test for product determination function module
How is new Appoinment id generated in my task followup scenario
How is new Appoinment id generated in my task followup scenario
How is new Appoinment id generated in my task followup scenario
Cannot add task ‘wrapper‘ as a task with that name already exists.
Cannot add task ‘wrapper‘ as a task with that name already exists.
288 0
|
Java C# vr&ar
C# Task用法
原文:C# Task用法 1、Task的优势   ThreadPool相比Thread来说具备了很多优势,但是ThreadPool却又存在一些使用上的不方便。比如:   ◆ ThreadPool不支持线程的取消、完成、失败通知等交互性操作;   ◆ ThreadPool不支持线程执行的先后次序;   以往,如果开发者要实现上述功能,需要完成很多额外的工作,现在,FCL中提供了一个功能更强大的概念:Task。
1644 0