I am unable to fix this error:
dependencies cannot be applied to \'(groovy.lang.Closure)
This is my gradle file:
buildscrip
My problem is that the whole build.setting file were occupied with cannot be applied to '(groovy.lang.Closure)' warning messages instead of happening on any particular variable.
I have tried all solutions provided by others but none of them works for me. I ended out doing these steps then it works like a charm. If you are encountering the same issue then give it a try.
yourproject/gradle/wrapper/gradle-wrapper.properties. Edit content to update the gradle distribution version as shown in the image below then save.yourproject/.gradle.Sync project with gradle files, then you are good to go.