From c3e0107ce30aa676011bf7ea0daa9c8db750f024 Mon Sep 17 00:00:00 2001 From: Rich Slogar Date: Fri, 16 Jan 2015 11:11:56 -0800 Subject: [PATCH 1/2] docs: studio proxy setup Change-Id: Ifbe3f03a47cfb1a59ade4e2fb678a51a7256fdb4 --- docs/html/images/tools/studio-inspection-scope.png | 0 docs/html/images/tools/studio-inspections-config.png | 0 2 files changed, 0 insertions(+), 0 deletions(-) create mode 100644 docs/html/images/tools/studio-inspection-scope.png create mode 100644 docs/html/images/tools/studio-inspections-config.png diff --git a/docs/html/images/tools/studio-inspection-scope.png b/docs/html/images/tools/studio-inspection-scope.png new file mode 100644 index 0000000000000..e69de29bb2d1d diff --git a/docs/html/images/tools/studio-inspections-config.png b/docs/html/images/tools/studio-inspections-config.png new file mode 100644 index 0000000000000..e69de29bb2d1d From 0726a31f2be00880b8f77096e4083356d749dc52 Mon Sep 17 00:00:00 2001 From: Rich Slogar Date: Mon, 26 Jan 2015 11:08:55 -0800 Subject: [PATCH 2/2] docs: studio proxy setting setup b/18332702 Change-Id: If3a78fc7b906bb94cfa74fc07b95ef72a84cf825 --- docs/html/tools/studio/index.jd | 115 ++++++++++++++++++++++++++++++++ 1 file changed, 115 insertions(+) diff --git a/docs/html/tools/studio/index.jd b/docs/html/tools/studio/index.jd index 42ab89cefb299..f48adb395d6db 100644 --- a/docs/html/tools/studio/index.jd +++ b/docs/html/tools/studio/index.jd @@ -10,6 +10,7 @@ page.title=Android Studio Overview
  • Android Build System
  • Debug and Performance
  • Installation, Setup, and Update Management
  • +
  • HTTP Proxy Settings
  • Other Highlights
  • @@ -386,6 +387,120 @@ code-level preference: +

    Proxy Settings

    +

    Proxies serve as intermediary connection points between HTTP clients and web servers that add +security and privacy to internet connections.

    + +

    To support running Android Studio behind a firewall, set the proxy settings for the +Android Studio IDE and the SDK Manager. Use the Android Studio IDE HTTP Proxy settings page to set +the HTTP proxy settings for Android Studio. The SDK Manager has a separate HTTP Proxy settings +page.

    + +

    When running the Android Plugin for Gradle from the command line or on machines where +Android Studio is not installed, such as continuous integration servers, set the proxy settings +in the Gradle build file.

    + +

    Note: After the initial installation of the Android Studio bundle, +Android Studio can run with internet access or off-line. However, Android Studio requires an +internet connection for Setup Wizard synchronization, 3rd-party library access, access to remote +repositories, Gradle initialization and synchronization, and Android Studio version updates.

    + + +

    Setting up the Android Studio Proxy

    +

    Android Studio supports HTTP proxy settings so you can run Android Studio behind a firewall or +secure network. To set the HTTP proxy settings in Android Studio:

    +
      +
    1. From the main menu choose File > Settings > IDE Setting -- HTTP Proxy. + +
    2. In Android Studio, open the IDE Settings dialog. +
        +
      • On Windows and Linux, choose + File > Settings > IDE Setting -- HTTP Proxy.
      • +
      • On Mac, choose + Android Studio > Preferences > IDE Setting -- HTTP Proxy.
      • +
      + The HTTP Proxy page appears.
    3. +
    4. Select auto-detection to use an auto-configuration URL to configure the + proxy settings or manual to enter each of the settings. For a detailed explanation + of these settings, see + HTTP Proxy.
    5. +
    6. Click Apply to enable the proxy settings.
    7. +
    + +

    Android Plugin for Gradle HTTP proxy settings

    +When running the Android Plugin from the command line or on machines where Android Studio is not +installed, set the Android Plugin for Gradle proxy settings in the Gradle build file.

    + +

    For application-specific HTTP proxy settings, set the proxy settings in the +build.gradle file as required for each application module.

    +
    +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
    +    }
    +    ...
    +}
    +
    + + + +

    For project-wide HTTP proxy settings, set the proxy settings in the +gradle/gradle.properties file.

    + +
    +# Project-wide Gradle settings.
    +...
    +
    +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
    +
    +...
    +
    + + +

    For information about using Gradle properties for proxy settings, see the + Gradle User Guide.

    + +

    Note: When using Android Studio, the settings in the Android +Studio IDE HTTP proxy settings page override the HTTP proxy settings in the +gradle.properties file.

    + + + +

    SDK Manager HTTP Proxy Settings

    +

    SDK Manager proxy settings enable proxy internet access for Android package and library +updates from SDK Manager packages.

    + +

    To set the SDK Manager settings for proxy internet access, start the SDK Manager and open the +SDK Manager page.

    + + + +

    The Android SDK Manager page appears. Enter the settings and click Apply.

    + + +

    Other Highlights

    Translation Editor