Cuba 7 errors files in red

Hello,

I don’t know why but every time when I open the Cuba 7 Project I have this IDE Fatal Errors:
image

Moreover when I opened my project, suddenly, I have some imports in red line and entities missing.
image
image
Somehow the project loose the dependencies.
even the project worked normally before closing.

Please advise! What should I do?

Hello! Could you copy the stacktrace and attach it here? About missing classes, try to remove JDK and add it again in Project Structure -> SDKs.

It works:

sudo apt-get remove openjdk*
sudo apt-get remove --auto-remove openjdk*
sudo apt-get purge openjdk*

sudo apt-get install openjdk-8-jre
sudo apt-get install openjdk-8-jdk

But why did it happen?

It looks like an overkill, have you tried my approach? I suspect, that it is IDEA bug.

Yes I tried, It’s ok now.