android-studio設定代理

c3tc3tc3t發表於2016-11-25


/home/{user}/.gradle/gradle.properties
org.gradle.jvmargs=-Xmx1536m -DsocksProxyHost=127.0.0.1 -DsocksProxyPort=1080

android-studio setting>http Proxy> Manual proxy configuration
socks
hostname 127.0.0.1
port number 1080

android-project root 下的gradle.properties

systemProp.socks.proxyHost=127.0.0.1
org.gradle.jvmargs=-Xmx1536m -DsocksProxyHost=127.0.0.1 -DsocksProxyPort=1080
systemProp.socks.proxyPort=1080

相關文章