Cannot save settings: Root already belongs to main
Hi. I've started an open-source project some time ago with IntelliJ IDEA (Community Edition) and uploaded it to GitHub. My previous computer died and I had to reinstate the project from my GitHub repository and import the project into new (because GitHub does not have project files, just the source), and again after I had to clean install Windows again. I'm trying to remove the jetbrains dependency on NotNull import by a more generic, but it seems to be outside Java language scope :(
I'm trying to import this class for annotations (I want to remove JetBrains depencency, because if someone uses different IDE, it will produce error)
import javax.validation.constraints.NotNull;
But I've encountered this issue. That class isn't in standard Java library, it needs to be imported from external JAR dependency. And if I do so, it will fail:
How do I import it? Why does this show me that error?
请先登录再写评论。
Okay, I had to remove the java folder from the JavaJSON project structure. Strange...
Hermano lograste resolverlo, tenog un problema similar pero no logro entender pro que la dependencia causa error:
Raulgm00 What project type is it? Maven/Gradle based or normal IDEA project? Please upload the project files(incase it's not sensitive) to [https://uploads.jetbrains.com/](https://uploads.jetbrains.com/) and paste the upload id here, the uploaded file is only visible to JetBrains employees.