IntelliJ System.out.println() - Cannot resolve method println(java.lang.String)

user6479494 picture user6479494 · Jul 28, 2016 · Viewed 46.1k times · Source

I am using IntelliJ IDEA, learning Java. All went well until yesterday, when the mentioned error occurred.

I didn't make any changes. I was looking for the solution the following ways:

  1. reboot the pc
  2. restart IntelliJ.
  3. delete the project directory and use another one (both on desktop)

nothing helps. buy running simple hello world method. It keeps showing this error:

screenshot

Is there someone able to help me?

Answer

user6479494 picture user6479494 · Jul 28, 2016

ok, is solved.

file -> invalidated caches / Restart