updated Gradle files to handle API 21