Updates the gradle build file to the latest needed for Android Studio.

This may require the buildbot to be updated.
Merge pull request #1725 from Sonicadvance1/update_gradle

Updates the gradle build file to the latest needed for Android Studio.