Fixed multiple Gradle and Android Studio issues.