I had same issue with the latest Android Studio () today, and I finally
found that configuring a https proxy for Gradle can solve the issue. I only
set a http proxy at the beginning. Gradle needs to sync some files via
HTTPS. Use IP address instead if hostname of proxy can't work.