Reputation: 21
Gradle sync ended up with the following errors
org.gradle.internal.resource.transport.http.HttpRequestException: Could not GET 'https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/3.1.4/gradle-3.1.4.pom'.
at org.gradle.internal.resource.transport.http.HttpClientHelper.performRequest(HttpClientHelper.java:96)
AND
org.gradle.internal.resource.transport.http.HttpRequestException: Could not GET 'https://jcenter.bintray.com/com/android/tools/build/gradle/3.1.4/gradle-3.1.4.pom'.
Kindly help
Upvotes: 0
Views: 2473
Reputation: 21
The problem is with my proxy server,I got the proxy details through this
chrome://net-internals/#proxy
and putting these lines inside gradle.properties file solved my problem
systemProp.http.proxyHost= hostname or IP
systemProp.http.proxyPort=
systemProp.http.proxyUser=username
systemProp.http.proxyPassword=password
systemProp.http.nonProxyHosts=*.nonproxyrepos.com|localhost
systemProp.https.proxyHost=hostname or IP
systemProp.https.proxyPort=
systemProp.https.proxyUser=username
systemProp.https.proxyPassword=password
systemProp.https.nonProxyHosts=*.nonproxyrepos.com|localhost '
Upvotes: 1