title: Object sql is not a member of package org.apache.spark
body: <p>I am trying to work with spark-sql but while I importing </p>
  
  <pre><code>import org.apache.spark.sql.{Row, SparkSession}
  </code></pre>
  
  <p>getting following error:</p>
  
  <pre><code>object sql is not a member of package org.apache.spark
  </code></pre>
  
  <p>Here are my details:</p>
  
  <p>Spark version: 1.6.2
  Scala version: 2.11.8
  sbt version: 0.13.16</p>
  
  <p>Here is my build.sbt file:</p>
  
  <pre><code>name := "sbt_demo"
  version := "1.0"
  scalaVersion := "2.11.8"
  
  libraryDependencies += "org.apache.spark" %% "spark-core" % "1.6.2"
  
  libraryDependencies += "org.apache.spark" %% "spark-sql" % "1.6.2"
  </code></pre>
  
  <p>Note: there is another question with the same problem in Stack Overflow, but that accepted answer didn't help me. That is the reason why I am asking again.</p>