Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

7
  • 80
    Our team also ran into this issue. It was caused by the Gradle version of IntelliJ using another JVM. To solve this go to the preferences: Build, Execution, Deployment > Build Tools > Gradle > Gradle JVM and change the jvm version there Commented Sep 2, 2022 at 8:36
  • 4
    thanks @jvwilge , just spent an hour or so scratching my head after declaring sourceCompatibility/targetCompatibility and still facing this issue! Commented Sep 9, 2022 at 12:10
  • 3
    likewise, thanks @jvwilge, been fighting it for hours. Commented Sep 20, 2022 at 11:40
  • 2
    Thanks @jvwilge I was confused why it still mentions Java 8 even though I have set the JDK to 11 in Project Settings. Commented Sep 27, 2022 at 11:52
  • 2
    @jvwilge thanks man! consider please set you comment as an answer in order to help other people that don't see comments. Commented Jan 11, 2023 at 12:44