Home Features Docs Blog Support GitHub

[macbook] Could not determine java version from '14.0.2'

Hi, I’m Flutter, Native Android developer so I have Java, Kotlin and Installed. But today I installed MOE plugin into the latest IntelliJ IDEA and created the simple project in the template called “Single View Application”. The problem is that when I try to run it, it shows me the following error:

Error, unable set Sdk.
FAILURE: Build failed with an exception.

* What went wrong:
Could not determine java version from '14.0.2'.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org
Multi-OS Engine module build failed
FAILURE: Build failed with an exception.

* What went wrong:
Could not determine java version from '14.0.2'.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org
Multi-OS Engine module build failed
FAILURE: Build failed with an exception.

* What went wrong:
Could not determine java version from '14.0.2'.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org
Multi-OS Engine module build failed
FAILURE: Build failed with an exception.

* What went wrong:
Could not determine java version from '14.0.2'.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org
Multi-OS Engine module build failed
FAILURE: Build failed with an exception.

* What went wrong:
Could not determine java version from '14.0.2'.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org
Multi-OS Engine module build failed

Any suggestion in how to solve this?

Use jdk 8 as the project jdk instead. Also make sure the jdk for gradle runner is set to jdk 8 as well.