Updated gradle files for new versions of AS and Gradle.