IntelliJ Idea 12 + Android + Scala nowadays

Update: You can read the tutorial I wrote about the upcoming new version of SBT-Android (0.7). Most of your concerns should be addressed there. If they are not, then that’s a problem.


Update 2: For fairness’s sake, there’s also a great work in progress : android-sdk-plugin by @pfn on GitHub.

Regarding ProGuard and build times :

  • I am, myself, preloading large libraries on my device with sbt-android. This eliminates ProGuard altogether, but requires root.

  • android-sdk-plugin‘s latest version boasts a new ProGuard cache (same as AndroidProguardScala), which is pretty sweet and does eliminate ProGuard in most cases during development.


I’ve been contributing to SBT-Android for a few months now, so I know it a lot better than the other solutions.

As of now, the plugin is evolving rapidly, with :

  • Full IntelliJ support (thanks to SBTIdea) coming very soon (In fact, it already works, I just need to send the pull requests)
  • Automatically preload Scala on an emulator, or rooted device (Just run android:preload-{device, emulator}, no Proguard needed for development anymore!)
  • Should support simple Gradle projects out-of-the-box with minimal effort (The directory structure is very similar)
  • Configuration is a lot easier (Just add the plugin and a project file and you’re set!)

The current version doesn’t have most of these niceties, but they’re coming up in the following weeks. Some documentation is of course going to follow very soon afterwards, with examples and everything I’ll think of.

I encourage you to join the Scala on Android Google Group and share your thoughts, by the way. There’s also a #sbt-android channel on Freenode if you’re into IRC.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)