I am unable to fix this error:
dependencies cannot be applied to \'(groovy.lang.Closure)
This is my gradle file:
buildscrip
You can go to Preferences and select "use default gradle wrapper" then rebuild the project. It worked well for me: