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
Solution 4 “Peer Not Authenticated” while adding maven "jitpack.io" in app's gradle.build.
Simple solution is install java 8 if you have lower version. We tried with Oracle java8 and it works. :)
Note : Tried a lot of solutions those are on stackoverflow.com but none of them work for me.