Upgraded the project for the latest version of Android Studio and Gradle.