I had this issue too and tried some solutions suggested here (did Maven clean and install) but it didn't seem to help. But then a little notification appeared at the bottom right corner saying "Maven "filename" build script found" and there was a button "Load Maven Project", I pressed it, it downloaded stuff and everything started working! And I don't know if it happened because I cleaned Maven or not