title: object twitter is not a member of package org.apache.spark.streaming
body: <pre><code>import org.apache.spark.streaming.twitter._
  </code></pre>
  
  <p>gives the error</p>
  
  <blockquote>
    <p>object twitter is not a member of package org.apache.spark.streaming</p>
  </blockquote>
  
  <p>I am trying to stream Twitter data using Spark. I am using SBT and have spent a lot of time to fix this. This is how my SBT looks like:</p>
  
  <pre><code>name := "stream-demo"
  version := "1.0"
  scalaVersion := "2.11.7"
  val sparkVersion = "2.1.0"
  libraryDependencies ++= Seq(
  "org.apache.spark" %% "spark-core" % sparkVersion,
  "org.apache.spark" %% "spark-sql" % sparkVersion,
  "org.apache.spark" %% "spark-streaming" % sparkVersion)
  libraryDependencies += "com.typesafe" % "config" % "1.3.0"
  libraryDependencies += "org.twitter4j" % "twitter4j-core" % "4.0.4"
  libraryDependencies += "org.twitter4j" % "twitter4j-stream" % "4.0.4"
  "1.5.2"   
  </code></pre>
  
  <p>Any solution to fix this problem will be highly appreciated.</p>