sbt

Scala Build Tool

Installation

To install sbt, download it from the official website and follow the install instructions. The Android SDK Plugin for SBT requires no manual download, but will instead be loaded by sbt as a dependency, which will be explained later. Please make sure to read the excellent article Scala on Android - Setting sbt configuration by 47 Degrees if you are starting from zero.

You can also manage your build via /build.sbt. However, /project/Build.scala is written in actual Scala code, is slightly more expressive and allows you to keep all of your configuration files in the /project folder.

build.properties

An optional, but recommended file that specifies the sbt version for this build.

plugins.sbt

Dependencies for sbt plugins are managed in this file. This is necessary, as we need to rely on Android SDK Plugin for SBT here.

src/

main/

AndroidManifest.xml

res/

Common Android resource folders such as drawable/ and values/ go here.

java/

Java source files that may interact with the Scala sources and vice versa.

scala/

The actual application code is located in this folder if you're not building a Java app with sbt (which is also possible).