6

Using Intellij IDEA, I created a new Gradle project using Gradle 6.4 and Java 14, but when I try to build the project, I'm getting this error :

No enum constant org.gradle.api.JavaVersion.VERSION_14

What do I do ?

Edit 1 :
I'm using the latest EAP version of IDEA.

Bashir
  • 2,057
  • 5
  • 19
  • 44
Ayfri
  • 570
  • 1
  • 4
  • 24

1 Answers1

8

It is known issue with 2020.2 EAP version: IDEA-243097. Will be fixed in the next EAP update (expected next week). Sorry for the inconvenience.

As a workaround please downgrade IDE version.

Andrey
  • 15,144
  • 25
  • 91
  • 187
  • Good to see the authors pitching in quick. (y) I just reached that tracker and saw an update *"Just now"*, was wondering if I should comment there, while you've answered this. On the other hand, what is the cause behind this(in case people can look for a quick workaround)? – Naman Jun 12 '20 at 16:00
  • 2
    The cause is - the bundled with the IDE Gradle tooling library has been updated. The workaround is to downgrade. – Andrey Jun 13 '20 at 13:47