SBT Android and the New Build Tools

I updated my Android platform tools to vesion 17 and installed the new Build Tools. These new build tools break the sbt android plugin. This is because they moved some of the tooling to live under a new “build-tools” directory.

To fix this I wrote a ruby script to create a set of sim links from the build tools back to platform tools. All you need to have to run this is:

$ export ANDROID_SDK_HOME = <Where you have the SDK Installed>
$ curl | ruby

The code is:

Dir.glob("*").each{|x| system "ln -s #{ENV['ANDROID_SDK_HOME']}/build-tools/17.0.0/#{x} #{ENV['ANDROID_SDK_HOME']}/platform-tools/#{x}"}