Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialAshley Hopkins
1,654 Points(IntelliJ IDEA Version: 2017.3.4) Build: Sync => Could not determine java version from '9.0.4'.
Hi guys, I'm working through 'Spring Basics' at the mo. I've downloaded and installed intelliJ. After starting a new project with Gradle as instructed - the build sync fails as follows:
"Could not determine java version from '9.0.4'."
The set-up was all as default as far as i'm aware. I'd be really grateful for any help or pointers. thanks, Ash :)
4 Answers
Ben Basty
23,772 PointsGo to Gradle - wrapper - gradle-wrapper.properties change the Url distribution link to this for example, distributionUrl=https://services.gradle.org/distributions/gradle-4.3.1-all.zip We must update the gradle version to the most recent one.
Steve Hunter
57,712 PointsHi there,
Having a quick Google around this issue, it looks as though you need to upgrade your Gradle version.
There's some info on the issue here.
Good luck!
Steve.
Ashley Hopkins
1,654 PointsThanks very much for the reply Steve. Unfortunately, I have actually tried this but it appears i'm already on the most current version.
=> gradle 4.6 already installed
Ashley Hopkins
1,654 PointsThe only way i could get intelliJ working in the end was by uninstalling Java 9 and replacing it with 8. Thanks for your help Steve :)
Steve Hunter
57,712 PointsThat's not really a solution, is it? I wonder why IntelliJ haven't got a patch to fix this.
Steve Hunter
57,712 PointsOther, unhelpful, threads are suggesting reverting to Java 8, rather than using 9. I don't see that as a solution, though! I'll keep looking ...
There are a few links in here that might be useful.