Accepted answer

We are using Scala heavily to test our Android code - you can read a writeup of how we're doing so here. We use Ant or SBT to compile - there's an excellent SBT plugin for Android development.

Having said all of that, I'm not sure that I would recommend Scala for production Android development. In particular Scala 2.9.x is basically unusable as there is no good way to get the libraries to work on Android. You can read about the issue here.

It's a real pity, as Android development would benefit considerably from Scala if we could get it working properly.


This video from ScalaDays 2011 may be hepful:

Scala on Android: Real-world Experience at Bump Technologies by Michael Galpin


If you really really want to run Scala code on Android (and not really make an app, but for yourself), then I have an easier solution. It depends on if your phone supports the procedure. In summary the steps are:

  1. Install Ubuntu on your device (as described here). This will not affect the Android installation.

  2. Boot Ubuntu, install JDK, Scala, etc, copy your Scala jars and run from there.


I started to implement the android application (a twitter client) from the book "Learning Android" with Scala 2.9.0-1 a while ago.

In my opinion you can use it. I had only one problem with the parameter list at AsyncTask (see this link, problem #3). If you want to checkout out the project, you can find it here.


Solution found here to use the latest Android SDK, with Eclipse 3.7.2 and Scala 2.9 :

  1. It completely handles the android library
  2. You can make Android Library out of scala projects as usual
  3. The build process is completely automated, including proguard-ing and exporting the project with the regulard Android tools.

Related Query

More Query from same tag