Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tag: 0.4.1
Fetching contributors…

Cannot retrieve contributors at this time

60 lines (38 sloc) 1.897 kb


Requires sbt

To use the plugin in a project, you just need to create project/plugins/Plugins.scala:

import sbt._
class Plugins(info: ProjectInfo) extends PluginDefinition(info) {
  val android = "org.scala-tools.sbt" % "android-plugin" % "0.4.1"

and make the project definition in project/build/Project (for example):

import sbt._

class Project(info: ProjectInfo) extends AndroidProject(info) {
  override def androidPlatformName = "android-1.5"
  // or preferably set the ANDROID_SDK_HOME environment variable
  override def androidSdkPath = Path.fromFile(new File("/home/mark/code/java/android-sdk-linux_x86-1.5_r2"))
  // set to the keystore alias you used when creating your keychain
  val keyalias = "my_keys"
  // set to the location of your keystore
  override def keystorePath = Path.userHome / ".keystore" / "mykeys.keystore"

Alternatively, you can also use a provided script to set everything up for you:

$ script/create_project MyAndroidProject

This will generate the project structure as well as all needed files plus skeleton tests, specs and activities.

To build the package:

$ cd myAndroidProject
$ sbt update package-debug

To install the package:

$ sbt install-emulator

To build a signed package for release into the Marketplace

$ sbt sign-release

Hacking on the plugin

If you need make modifications to the plugin itself, you can compile and install it locally (you need at least sbt 0.7.x to build it):

$ git clone git://
$ cd android-plugin
$ sbt publish-local    


This code is based on work by Walter Chang (saisiyat), turned into a plugin by Mark Harrah.

Jump to Line
Something went wrong with that request. Please try again.