2020-04-07
异常代码:
Caused by: org.gradle.api.internal.tasks.DefaultTaskContainer$DuplicateTaskException:
Cannot add task 'wrapper' as a task with that name already exists.
找到问题出现的地方
task wrapper(type: Wrapper) {
gradleVersion = '4.2.1'
}
解决方案
wrapper() {
gradleVersion = '4.2.1'
}
网友评论