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

James Vlok
James Vlok
17,059 Points

Code Challenge: Compiles and Passes all tests in ItelliJ Idea but does not compile on submission

I have completed the code challenge in ItelliJ IDEA. The code compiles and returns the correct output. The tests included in the code challenge bundle also execute successfully. I run the prepareSubmission task and upload the zip file to Treehouse. Then I get the running tests website followed by a Oh no Failed to compile error . I have tested and recompiled and run prepareSubmission and uploaded the zip same error. I have redone the entire code challenge from the start and still the same error.

2 Answers

I'm experiencing the same issue right now, were you able to get past it at any point?

James Vlok
James Vlok
17,059 Points

Hi, William. Yes, I managed to get it to work by using a local Gradle installation with a more recent Gradle version V4.7. It was the only work around I got to work. Unfortunately I do not have the code anymore (the complete submission zip file). It had something to do with the Gravel supplied with the code challenge zip file and the Java JDK version (JDK 10) not being compatible.

All the best!