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'
}
目录
相关文章
|
2月前
|
SQL Oracle 关系型数据库
SYS_AUTO_SPM_EVOLVE_TASK
AUTO_STATS_ADVISOR_TASK SYS_AUTO_SPM_EVOLVE_TASK
29 0
|
11月前
|
Unix Java Linux
Runtime.exec方法之获取process id
Runtime.exec方法之获取process id
168 0
|
Java 数据库连接 mybatis
A query was run and no Result Maps were found for the Mapped Statement
A query was run and no Result Maps were found for the Mapped Statement
182 0
c#编程:Task不包含Task.Run
c#编程:Task不包含Task.Run
259 0
2015-03-18 current note update logic in my task
2015-03-18 current note update logic in my task
77 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
125 0
How to create unit test for product determination function module
test case id - hash generation logic
Created by Wang, Jerry, last modified on Jul 06, 2016
110 0
test case id - hash generation logic
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

热门文章

最新文章