title: Error while running sbt package: object apache is not a member of package org
body: <p>When I try sbt package in my below code I get these following errors</p>
  
  <ol>
  <li>object apache is not a member of package org</li>
  <li><p>not found: value SparkSession </p>
  
  <p>MY Spark Version: 2.4.4<br>
  My Scala Version: 2.11.12</p></li>
  </ol>
  
  <p><strong>My build.sbt</strong></p>
  
  <pre><code>name := "simpleApp"
  
  version := "1.0"
  
  scalaVersion := "2.11.12"
  
  //libraryDependencies += "org.apache.spark" %% "spark-core" % "2.4.4"
  
  
    libraryDependencies ++= {
     val sparkVersion = "2.4.4"
         Seq( "org.apache.spark" %% "spark-core" % sparkVersion)
    }
  </code></pre>
  
  <p><strong>my Scala project</strong> </p>
  
  <pre><code>import org.apache.spark.sql.SparkSession
  object demoapp {
    def main(args: Array[String]) {
  
  val logfile = "C:/SUPPLENTA_INFORMATICS/demo/hello.txt"
  val spark = SparkSession.builder.appName("Simple App in Scala").getOrCreate()
  val logData = spark.read.textFile(logfile).cache()
  val numAs = logData.filter(line =&gt; line.contains("Washington")).count()
  println(s"Lines are: $numAs")
  spark.stop()
  }
  }
  </code></pre>