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

edumorlom
edumorlom
4,073 Points

Getting an error "Error running build: Target module is undefined" when running the Gradle build.

I am not sure as to how submit the assignment. I don't know what I am supposed to do with the Gradle. I am getting a "Error running build: Target module is undefined".

I think I am doing something wrong.

Craig Dennis
Craig Dennis
Treehouse Teacher

Do you see the Gradle task treehouse > prepareSubmission?

1 Answer

edumorlom
edumorlom
4,073 Points

I didn't see treehouse > prepareSubmission but there was a build.gradle file and I ran it. Then I manually zipped the folder and submitted that and it worked but for some reason, I couldn't figure out what was going and why it didn't automatically zip. I think I was doing something wrong but I was able to turn it in by manually zipping the source folder.

Where should treehouse > prepareSubmission be?

Craig Dennis
Craig Dennis
Treehouse Teacher

I made a video to help explain

Gradle treehouse > prepareSubmission Task

If you don't have the Gradle window, use the "Find Action" in IntelliJ ( Cmd + Shift + A / Ctrl + Shift + A )