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

facing gradle sync issue…
Cannot add task ‘wrapper’ as a task with that name already exists.

@zaasmi
Yes thanks it solved my problem

then you can remove from build.gradle

task wrapper(type: Wrapper) {
    gradleVersion = '4.4'
    distributionUrl = distributionUrl.replace("bin", "all")
}