Update build files to the latest gradle/sdk/etc

And make sure that it actually builds properly