It looks like you are confusing .scala and .sbt files. SBT allows defining build in two different ways. .scala files are, well, normal Scala files, so they can't have code (and name := "SparkTwitterStreaming" etc. in SBT are just Scala code) on top level, it has to be inside a trait/class/object. SBT itself takes care of wrapping .sbt files in this way.

SparkTwitterStreaming/project/project/build.scala also looks wrong: there are cases in SBT when you'd use a file under project/project, but this isn't one of them. You probably want to move this file to SparkTwitterStreaming/build.sbt.