When you upgrade from gradle 2.0 to 2.1, you may see following error.
Could not HEAD \'https://jcenter.bintray.com/de/undercouch/gradle-download-task/1.0/gr
I've updated the gradle wrapper to version 2.4, by changing the gradle-wrapper.properties file from:
gradle-wrapper.properties
distributionUrl=https\://services.gradle.org/distributions/gradle-2.0-bin.zip
to:
distributionUrl=https\://services.gradle.org/distributions/gradle-2.4-bin.zip
This solved it for me.