Since java was reinstalled before, and 1.8 was uninstalled and installed on 11, this problem occurred in all the projects that used 11 in java before.
1. Change the java version to your current java version
2. Change the project facets to your current java version and
you’re done