Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Two modules in a project cannot share the same content root. (Intellij Idea)

I am trying to run my project (spring boot) but it is asking to configure the sdk. But it is saying Two modules in a project cannot share the same content root. I have installed jdk . Earlier it was working properly. These are are the images to get the clear idea->

I am not able to do anything. Can anyone tell me what is this "same content root' Also under the project ther are four options -> projects moduels libraries facets artifacts Please can someone explain this thing , I Checked on internet but didn't get clear idea specially for "facets" and "artifacts"? This question is alreday asked but not answered properly. Thanks in advance

like image 466
Sachin Bhandari Avatar asked Dec 10 '25 08:12

Sachin Bhandari


1 Answers

Try to close the project and the IDE, remove all .iml files and the .idea directory via the OS task manager from your project and re-import from scratch https://www.jetbrains.com/help/idea/import-project-or-module-wizard.html#open-project

like image 178
Egor Klepikov Avatar answered Dec 12 '25 01:12

Egor Klepikov



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!