build errors trying to follow LInkedIn "Kotlin Essential Training" course

Answered

I installed the community version of Itellij IDEA, and am trying to follow the course, but there is a problem: each time I attempt to build and run an example, the entire project is built, and there seems to be a lot of name collisions between various example modules, so the build fails. The error messages window snapshot is attached.

I suspect there is a way to limit the scope of build/execution to a single module, but can't find it.

Or maybe I am doing something wrong?

 

TIA!

vb

0
3 comments

Once you trigger "build" action, all the modules are built: https://i.imgur.com/yG2EI1f.jpg

However, you can use "run" action, so only needed module will be built: https://i.imgur.com/3cpkSJf.png

0
Avatar
Permanently deleted user

Konstantin,

 

thank you for your reply. I don't see the same screen your are showing though (please see attached), and I click on the  'run' button, not 'build' when trying to execute the code.

0

Your project is not divided into modules. 

Either fix all the errors (preferable) or add every lesson/chapter as a separate module (File | New module from existing sources). 

0

Please sign in to leave a comment.