Scala, Android and Eclipse Scala, Android and Eclipse android android

Scala, Android and Eclipse


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.


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

https://stackoverflow.com/a/11084146/1287856

  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.


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.