Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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 )