I've a Windows 10 PC running behind ZScaler firewall and which is using a proxy. When I build any project (even basic templates of Android Studio) with Android Studio 3.2.1 I get this error from Gradle (I tried almost everything... without success):
FAILURE: Build failed with an exception.
What went wrong: A problem occurred configuring root project 'XXXX'.
Could not resolve all artifacts for configuration ':classpath'. Could not resolve com.android.tools.build:gradle:3.2.1. Required by: project : Could not resolve com.android.tools.build:gradle:3.2.0. Could not get resource 'https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/3.2.0/gradle-3.2.0.pom'. Could not GET 'https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/3.2.0/gradle-3.2.0.pom'. Connect to dl.google.com:443 [dl.google.com/216.58.205.78] failed: Connection timed out: connect Could not resolve com.android.tools.build:gradle:3.2.0. Could not get resource 'https://jcenter.bintray.com/com/android/tools/build/gradle/3.2.0/gradle-3.2.0.pom'. Could not GET 'https://jcenter.bintray.com/com/android/tools/build/gradle/3.2.0/gradle-3.2.0.pom'. Connect to jcenter.bintray.com:443 [jcenter.bintray.com/5.153.35.248] failed: Connection timed out: connect
Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Get more help at https://help.gradle.org
BUILD FAILED in 42s