diff --git a/docs/html/images/tools/sdk-iadd.png b/docs/html/images/tools/sdk-iadd.png new file mode 100644 index 0000000000000..7e355218e3a9a Binary files /dev/null and b/docs/html/images/tools/sdk-iadd.png differ diff --git a/docs/html/images/tools/studio-sdk-manager-packages.png b/docs/html/images/tools/studio-sdk-manager-packages.png index 356073e998245..79ea912e183a0 100644 Binary files a/docs/html/images/tools/studio-sdk-manager-packages.png and b/docs/html/images/tools/studio-sdk-manager-packages.png differ diff --git a/docs/html/tools/help/sdk-manager.jd b/docs/html/tools/help/sdk-manager.jd index aaa1930953830..36eac0735856d 100755 --- a/docs/html/tools/help/sdk-manager.jd +++ b/docs/html/tools/help/sdk-manager.jd @@ -1,26 +1,39 @@ page.title=SDK Manager @jd:body +
+
+

In this document

+
    +
  1. Enabling Automatic Update Checking
  2. +
  3. Running the SDK Manager
  4. +
  5. Recommended Packages
  6. +
  7. Adding New Sites
  8. +
+ +
+

The Android SDK Manager separates the SDK tools, platforms, and other components into packages for easy access and management. You can also customize which sites the SDK Manager checks for new or updated SDK packages and add-on tools. For example, you can configure the SDK Manager -to automatically check for updates and notify you when an installed SDK Tools package is updated. +to automatically check for updates and notify you when updates are available. When you receive such a notification, you can then quickly decide whether to download the changes.

-

By default, Android Studio does not check for Android SDK updates. To enable automatic Android -SDK checking:

+

Enabling Automatic Update Checking

+

To enable automatic update checking:

  1. Choose File > Settings > Appearance & Behavior > System Settings > Updates.
  2. -
  3. Check the Automatically check updates for Android SDK checkbox and select an +
  4. Select the Automatically check updates for checkbox and select an update channel.
  5. Click OK or Apply to enable the update checking.
+

Running the SDK Manager

You can launch the SDK Manager in one of the following ways:

+

The SDK Manager appears.

+ +

Figure 1. The Android SDK Manager shows the +SDK platforms and packages that are available and installed along with the SDK update sites.

Tip: The standalone SDK Manager is still available from the -command line, but we recommend it only for use with standalone SDK installations.

+command line, but we recommend it for use with standalone SDK installations only.

-

By default, the SDK Manager installs the latest packages and tools. Click the checkbox next to +

Click the checkbox next to each additional SDK platform and tool that you want to install. Clear the -checkbox to uninstall a SDK platform or tool. Click Apply or OK +checkbox to uninstall an SDK platform or tool. Click Apply or OK to update the packages and tools.

Tip: When an update is available for an installed @@ -49,16 +66,14 @@ to the checkbox to indicate the pending update. An update icon () appears next to the checkbox to indicate pending removals.

-

Click the SDK Update Sites tab to manage which SDK sites Android Studio checks for +

Click the SDK Update Sites tab to manage which SDK sites Android Studio checks for tool and add-on updates.

- -

Figure 1. The Android SDK Manager shows the -SDK platforms and packages that are available and installed along with the SDK update sites.

-

There are several different packages available for the Android SDK. The table below describes + +

There are several different packages available for the Android SDK. The following section describes most of the available packages and where they're located in your SDK directory -once you download them.

+after you download them.

@@ -76,43 +91,44 @@ once you download them.

Be sure to respond to the Android Studio update prompts to keep your SDK Platform-tools up-to-date.
SDK Platform
-
Required. At least one platform is required in your -environment so you're able to compile your application. In order to provide the best user experience +
Required. At least one platform is required in your +environment to be able to compile your application. To provide the best user experience on the latest devices, we recommend that you use the latest platform version as your build target. You'll still be able to run your app on older versions, but you must build against the latest version in order to use new features when running on devices with the latest version of Android. -

The SDK Manager downloads the latest Android version. It also downloads the earliest version - of Android (Android 2.2 (API level 8)) that we recommend that your app support.

+
System Image
Recommended. Although you might have one or more Android-powered devices on which to test your app, it's unlikely you have a device for every version of Android your app supports. It's -a good practice to download system images for all versions of Android your app supports and test -your app running on them with the -Android emulator. Each SDK platform package -contains the supported system images. Click Show Package Details to display the available +a good practice to download system images for all versions of Android that your +app supports and then test +your app against these Android versions by using the +Android Emulator. Click Show Package Details to display the available system images for each available platform. You can also download system images when creating Android Virtual Devices (AVDs) in the AVD Manager.
-
Android Support Library
-
Recommended. Includes a static library that provides an extended set of - APIs that are compatible with most versions of Android. It's required for + +
Android Support Repository
+
Recommended. Includes a local Maven repository for the Android Data + Binding Library, Android Testing Support Library, and Android Support + Libraries. The Android Support Libraries provide an extended set of + APIs that are compatible with most versions of Android. They're required for products such as Android Wear, Android TV, and Google Cast. For more - information, read Support - Library. -
- -
Android Support Repository
-
Recommended. Includes local Maven repository for Support libraries.
+ information about each of the libraries in the Android Support Repository, + see Data Binding Guide, + Testing Support + Library, and Support + Library.
Google Play services
Recommended. Includes the Google Play services client library, which - provides a variety of features and services for your + provides a variety of features and services for your apps, such as Google - sign-in,, Google Maps, Games achievements and leaderboards, and much more.
@@ -122,45 +138,44 @@ Android Virtual Devices (AVDs) in the

Tip: For easy access to the SDK tools from a command line, add the -location of the SDK's tools/ and +location of the SDK tools/ and platform-tools to your PATH environment variable.

-

The above list is not comprehensive and you can The previous list is not comprehensive and you can add new sites to download additional packages from third parties.

In some cases, an SDK package may require a specific minimum revision of -another package or SDK tool. -The development tools will notify you with warnings if there is dependency that you need to -address. The Android SDK Manager also enforces dependencies by requiring any -packages that are needed by those you have selected.

+another package or SDK tool. The SDK Manager automatically notifies you of any +dependencies and downloads the required packages or tools. +In addition, development tools notify you if there are dependencies that you need to +address.

Adding New Sites

-

The SDK Update Sites tab displays the sites that Android Studio checks for Android SDK -and third-party updates. You can add other sites that host their own Android SDK add-ons, then +

The SDK Update Sites tab displays the sites that Android Studio checks for Android SDK +and third-party updates. You can add other sites that host their own Android SDK add-ons, and then download the SDK add-ons from those sites.

For example, a mobile carrier or device manufacturer might offer additional -API libraries that are supported by their own Android-powered devices. In order -to develop using their libraries, you must install their Android SDK add-on, if it's not already -available as a third-party add-on.

+API libraries that are supported by their own Android-powered devices. +To develop using their libraries, you must install their Android SDK add-on, if it's not already +available as a third-party add-on.

If a carrier or device manufacturer has hosted an SDK add-on repository file on their website, follow these steps to add their site to the Android SDK Manager:

  1. Click the SDK Update Sites tab.
  2. -
  3. Click the Add icon in the tools area and enter the name and URL of the - add-on site.
  4. -
  5. Click OK.
  6. -
  7. Make sure the checkbox is checked in the Enabled column.
  8. -
  9. Click OK or Apply.
  10. +
  11. Click Add .
  12. +
  13. Type the name and URL of the + add-on site, and then cick OK.
  14. +
  15. Make sure the checkbox is selected in the Enabled column.
  16. + +

    Any SDK packages available from the site appear in the SDK Platforms or +SDK Tools tabs.

-

Any SDK packages available from the site appear in the SDK Platforms or -SDK Tools tabs.

-