Fixed Gradle build issues.