美文网首页Android 开发工具
Cannot add task 'wrapper' as a t

Cannot add task 'wrapper' as a t

作者: galafan | 来源:发表于2020-04-07 14:48 被阅读0次

    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'
    }
    

    相关文章

      网友评论

        本文标题:Cannot add task 'wrapper' as a t

        本文链接:https://www.haomeiwen.com/subject/gicnphtx.html