There's a few things I can think of to try based on the error messages. These errors are new to me, so I'm just throwing a bunch of things out there:
If you are building with Android Studio, could you also try the command line (e.g. ./gradlew assembleDebug) to see if there is any difference?
Also check the version of gradle you're using. The latest is 2.13, which has been working great for me. You can change the version in your project root under gradle/wrapper/gradle-wrapper.properties. You can just change the version right there in distributionUrl.
The error messages are suggesting that something unexpected happened while downloading dependencies needed for the build. If you're able to "reset" gradle, it might be able to recover by trying everything again. The most straightforward thing to try might just be a reboot to get all the gradle daemon processes to die and restart. If that doesn't work, you might have to try something like blowing away some internal caches. Try removing these directories:
~/.gradle/caches (Gradle internal stuff)
~/.m2 (your Maven local cache where gradle stores the dependencies it downloads)
If you remove these directories, expect that your next build will take time to download some dependencies again.
Doug