1. 程式人生 > >android studio代理 gradle代理設定

android studio代理 gradle代理設定

android studio代理

  • 0x01 選單File, Settings

    輸入”proxy”, 顯示出代理設定面板.

gradle代理

  • 0x01 shadowsocks
systemProp.https.proxyPort=1080
systemProp.https.proxyHost=127.0.0.1
  • 0x02 proxy新增位置

build.gradle

apply plugin: 'com.android.application'

android {
    ...

    defaultConfig {
        ...
        systemProp.http.proxyHost=proxy.company.com
        systemProp.http.proxyPort=443
systemProp.http.proxyUser=userid systemProp.http.proxyPassword=password systemProp.http.auth.ntlm.domain=domain } ... }

gralde.properties

systemProp.http.proxyHost=proxy.company.com
systemProp.http.proxyPort=443
systemProp.http.proxyUser=username
systemProp.http.proxyPassword
=password systemProp.http.auth.ntlm.domain=domain systemProp.https.proxyHost=proxy.company.com systemProp.https.proxyPort=443 systemProp.https.proxyUser=username systemProp.https.proxyPassword=password systemProp.https.auth.ntlm.domain=domain

補充方案

有時候公司網路突然抽風了,那麼就用手機分享個熱點吧, 偶爾遇到一些依賴庫卡住了,就只有犧牲自己的流量來完成工作需要!!