i have tried it many times but its giving me same error.how to set the proxy so that this error is solved
The problem is you are not able to download gradle from the host specified in gradle/wrapper/gradle-wrapper.properties
In my case this happened after I refactored the code using Idea. To get this working: 1. Be sure you can download the zip file at URL in the file mentioned above 2. If you can you may wanna check your proxy configuration or env vars
If you are using WAMP/XAMP server turn it off. This resolved my problem.
If you are using an http proxy server, revise the following proxy settings in "gradle.properties" file in your project's root folder. If not using proxy server, just delete those entries.
systemProp.http.proxyPort=8080
systemProp.http.proxyUser=UserName
systemProp.http.proxyPassword=Passw0rd
systemProp.https.proxyPassword=Passw0rd
systemProp.https.proxyHost=proxy.abc.com
systemProp.http.proxyHost=proxy.abc.com
systemProp.https.proxyPort=8080
systemProp.https.proxyUser=UserName
In my case if was turned on 'offline mode' in gradle. Turning off offline solved the problem