Hard to say without you providing the stack trace, but from what I see I'd guess you are running your build with a tool old Gradle version that does not have a method your build is using.
That is why you should never use an installed Gradle version to run a build, but always the Gradle wrapper checked in with the project, as it then runs the build with the exact Gradle version the build is designed for. I usually don't even have Gradle installed separately. And imho any project not having the wrapper has a bug.