I am currently using IntelliJ IDEA 2018.3.4 which I am trying to integrate with Scala but to no avail.
I have installed the Scala and SBT plugins and used the following steps in creating my project:
- File > Create New Project
 - Selected Java from the left
 - Selected Scala from the right > Next
 - Entered the name of the project > FINISH
 
From there, the project is created. Following other guides, I then:
- Right click on the src directory
 - New > File
 - Enter main/scala/Main.scala
 - And enter the following code in there:
 
Code:
package main.scala
object Main {
  def main(args: Array[String]): Unit = {
    println("Hello World")
  }
}
But after right clicking in the editor and selecting Run Main, I get the following message:
Error: Could not find or load main class
Has anyone experienced this or can provide any solution?
Note
I have also tried creating a Scala application with sbt but the syncing process for the sbt dump never ends or gives an error and when I run the project, I get the same error.