org.apache.commons.lang3 not recognized in my Intellij IDE
已回答
Hi, I've imported a method that uses
org.apache.commons.lang3
however my IDE shows that its not recognized but the code still works perfectly fine, I just find it annoying since it's showing I have errors in my project when I don't. (The app still compiles fine etc. my IDE just states that it cannot resolve symbol commons)
cannot resolve symbol 'commons'
请先登录再写评论。
What build system do you use? If it's Maven try to perform the following steps:
File | Invalidate Caches... | Mark first two checkboxes | Invalidate and RestartClose the project window
File | Close Projectand IntelliJ.Open your project in OS file explorer and remove all
*.imlfiles and the.ideafolder from your project.Delete
.m2maven folder.Re-import the project into IntelliJ from Existing sources.
Thank you! The first step worked.