sdkmanager is a command line tool that allows you to view, install,
update, and uninstall packages for the Android SDK. If you're using Android
Studio, then you do not need to use this tool and you can instead manage your
SDK packages from the IDE.
sdkmanager tool is provided in the Android SDK Tools package
(25.2.3 and higher) and is located in
You can use the
sdkmanager to perform the following tasks.
List installed and available packages
sdkmanager --list [options]
sdkmanager packages [options]
The packages argument is an SDK-style path as shown with
--list command, wrapped in quotes (for example,
"platforms;android-25"). You can pass multiple package
paths, separated with a space, but they must each be wrapped in their own set of
For example, to get
fastboot, install the latest platform tools:
Alternatively, you can pass a text file that specifies all packages:
sdkmanager --package_file=package_file [options]
The package_file argument is the location of a text file in which each line is an SDK-style path of a package to install (without quotes).
To uninstall, simply add the
sdkmanager --uninstall packages [options] sdkmanager --uninstall --package_file=package_file [options]
Update all installed packages
sdkmanager --update [options]
The following table lists the available options for the above commands.
||Use the specified SDK path instead of the SDK containing this tool|
||Include packages in channels up to channel_id. Available channels are:
||Include obsolete packages in the package listing or package updates.
For use with
||Force all connections to use HTTP rather than HTTPS.|
||Verbose output mode. Errors, warnings and informational messages are printed.|
||Connect via a proxy of the given type: either
||IP or DNS address of the proxy to use.|
||Proxy port number to connect to.|