Updates build.gradle to support latest android build tools.