Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Intellij doesn't recognize class

i was doing some homework in java but intellij doesn't recognize my class. It recognize the main class but it recognize the other class only on the first execution, whenever i modify the code and rebuild it intellij doesn't recognize the other class. I thought it was a jdk problem so i've downloaded an open source jdk but the problem persits. I've found no solutions yet, neither in the intellij forum. It sees the class only if i do a refactor but that's annoying. Mine intellij is up to date(7/5/19).

You can see in the pictures that intellij doesn't give me any problem on the syntax but it says that he cannot resolve "Matrix".

like image 680
Matteo Bianchi Avatar asked Dec 01 '22 09:12

Matteo Bianchi


1 Answers

Running "File | Invalidate Caches" helped.

See manual.

like image 161
y.bedrov Avatar answered Dec 04 '22 00:12

y.bedrov