Update Gradle project

Hi Al, I've updated the Gradle project so that it can be built using Android Studio 0.4+.

Merge it if you like, or not -- it's a two-minute changeset :)


EDIT: sorry for the original title mess