
"macosx", or "linux", packages will be downloaded for that OS.įor command-line tools, use tools/bin/sdkmanager and tools/bin/avdmanager * If the env var REPO_OS_OVERRIDE is set to "windows", proxy_host=: IP or DNS address of the proxy to use. proxy=: Connect via a proxy of the given type. no_https: Force all connections to use http rather than https. include_obsolete: With -list, show obsolete packages in the channel=: Include packages in channels up to. sdk_root=: Use the specified SDK root instead of the SDK containing this tool

In its third form, all installed and available packages are printed out. In its second form (with -update), currently installed packages are Multiple -package_file arguments may be specified in combination is a text file where each line is a sdk-style path

In its first form, installs, or uninstalls, or updates packages. On my machine (Mac), the output is as following. To check the available options, use the -help flag. You can also specify various options, for example to force all connections to use HTTP ( -no_https), or in order to use proxy server ( -proxy_host=address and -proxy_port=port). Pass multiple package paths, separated with a space, but they mustĮach be wrapped in their own set of quotes.Įxample usage (on my Mac): ls. The packages argument is an SDK-style path, wrapped in quotes (forĮxample, "build-tools 25.0.0" or "platforms android-25"). For example, specify the canary channel to list packages from all channels.

Use the channel option to include a package from a channel up to and including channel_id. Channels: 0 (stable), 1 (beta), 2 (dev), or 3 (canary)

List installed and available packages: sdkmanager -list \ It is located in android_sdk/tools/bin folder. Version 25.2.3 (and higher) of Android SDK Tools package contains new tool - sdkmanager - which simplifies this task of installing build-tools from the command line.
