在.gralde文件夹下新建gradle.properties文件
systemProp.http.proxyHost=127.0.0.1
systemProp.http.proxyPort=8100
systemProp.https.proxyHost=127.0.0.1
systemProp.https.proxyPort=8100
systemProp.socks.proxyHost=127.0.0.1
systemProp.socks.proxyPort=8100
org.gradle.jvmargs=-DsocksProxyHost=127.0.0.1 -DsocksProxyPort=8100