I'm having the same error, and I can't seem to work around it. I don't have a lot of experience with Java so I appreciate any help a n00b can get.
This is my Gradle config in IntelliJ:
When I target Java JDK 11.0.1 I get a slightly different error:
I'm using the latest version of gradle:
$ brew info gradle
gradle: stable 5.1
I've tried messing with the
distributionUrl=https\://services.gradle.org/distributions/gradle-2.14-bin.zip
in the gradle/wrapper/gradle-wrapper.properties file, but this just throws up other errors.
Any advice would be appreciated.
Cheers
AdzRock