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 trial

Java Introducing Gradle

Mehmet Arabaci
Mehmet Arabaci
4,432 Points

I get the error "Could not determine java version from '9.0.1'." when I try set up a gradle template as shown in the vid

As the title says:

I get the error "Could not determine java version from '9.0.1'." when I try set up a gradle template as shown in the vid.

Tried googling a solution, didn't help.

its look like its gradle is not yet working with java 9jdk, I switched back to Java 8 and it works

zlatkap
zlatkap
21,494 Points

This works for me too, and I think this is the easiest way to make it work. However if you want to do it better with Java9, you can find another tutorials from different developers. But changing to Java8 is definitely the fastest and easiest for beginner.

1 Answer

Go 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.