Can't run any tests individually in Intellij

I am attempting to create a new project with Gradle however I can’t run any tests individualy from Intellij.

When I try to run any test I get this error.

Error:gradle-resources-test:cms-v1_test: java.lang.NoSuchMethodError: org.gradle.api.specs.AndSpec.getSpecsArray()[Lorg/gradle/api/specs/Spec;

I have upgraded my Gradle to 3.1 but this hasn’t solved the issue, I have also refreshed the gradle project section in Intellij and invalidated the cache and restarted, both of these had no effect.

This happens on all my projects now, really not sure why. I cloned to ensure it wasn’t just my project, even the example Geb project just gave me the above error.

Has anyone seen this before?