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 Introduction to Functional Programming Java's Functional Toolset Lambdas

carlos florez
carlos florez
9,664 Points

Issues with IntelliJ and Gradle

I'm having issues with Gradle such as "Could not determine java version from '9.0.1'" and "Target module is undefined", the only way I can make it work is by changing the Distribution_Url in gradle-wrapper.properties to https://services.gradle.org/distributions/gradle-4.3-all.zip, it's set to 3.3 by default, the Gradle projects window won't populate anything until I do that, after making the change, Source sets and tasks appear visible and I can run prepare submission only then.

why is that?, is the treehouse package in need of correction or am I doing something wrong

2 Answers

Sebastian Röder
Sebastian Röder
13,878 Points

This worked for me, too - thank you.

Martin Gallauner
Martin Gallauner
10,808 Points

I had the same problem.

This is what I did:

  • Update Gradle on your local machine
  • Settings -> Build, Execution, Deployment -> Build Tools -> Gradle -> Use local gradle distrubution