Gradle sync failed
Answered
And trying to create a new gradle based project with JDK 9. And it's failing with the following error 'Could not determine java version from '9.0.4'.'
FYI, I'm using Intellij UE 2017.3.4 and i used gradle wrapper.
I uploaded the gif file which explains the issue to the web form with name `intelli-gradle-bug.gif`.
Please sign in to leave a comment.
Also even if i select Java 9 as SDK, the generated build.gradle file has `sourceCompatibility` set to '1.8'. Does that mean gradle plugin in intellij doesn't support java 9 yet?
Please check https://youtrack.jetbrains.com/issue/IDEA-171520 and https://youtrack.jetbrains.com/issue/IDEA-181427.
Gradle older than 4.2.1 doesn't support new java version number format like 9.0.1, see https://github.com/gradle/gradle/issues/2992 .
Try using the local Gradle installation and point to the more recent Gradle version or switch to Java 8.
Local Gradle works fine, but using gradle wrapper always fails. Also it's not generating the gradle wrapper files during project creation (when used with jdk 9).
Please try with https://www.jetbrains.com/idea/nextversion/.