Solved https.proxyHost issue
Today, I encounter a problem that is the project can’t sync, it reports that the cannot download gradle, we use gradle 7.3.3, the download…
Today, I encounter a problem that is the project can’t sync, it reports that the cannot download gradle, we use gradle 7.3.3, the download url is https://services.gradle.org/distributions/gradle-7.3.3-bin.zip
and I try to download the file from web browser, and it can be downloaded.
I find that there are another warning, it shows like below:
It was caused by the gradle.properties
in ~/.gradle
folder, after comment all the proxy settings on the file, and the gradle script can run successfully.
The two phenomenons of the issue
- Build failed with error that gradle can’t be downloaded
- The http proxy setting on android studio has the above warning