Gradle default Direct Connect network,Even Mac set the global proxy is the same。Even if you set up a proxy to Android Studio,It will still be directly connected fine, clear that you can not connect to the Web site in China for a lifetime ......
Gradle let go Agent,You need to give it a separate configuration,In each project gradle-wrapper.properties Insert statement follows,Remember https do not save!
1 2 3 4 |
systemProp.http.proxyHost=127.0.0.1 systemProp.http.proxyPort=1080 systemProp.https.proxyHost=127.0.0.1 systemProp.https.proxyPort=1080 |
Then restart the deployment,Gradle will go honestly agents deployed。
Original article written by LogStudio:R0uter's Blog » Gradle configure proxy
Reproduced Please keep the source and description link:https://www.logcg.com/archives/2762.html