ℹ️ Skipped - page is already crawled
| Filter | Status | Condition | Details |
|---|---|---|---|
| HTTP status | PASS | download_http_code = 200 | HTTP 200 |
| Age cutoff | PASS | download_stamp > now() - 6 MONTH | 0.6 months ago |
| History drop | PASS | isNull(history_drop_reason) | No drop reason |
| Spam/ban | PASS | fh_dont_index != 1 AND ml_spam_score = 0 | ml_spam_score=0 |
| Canonical | PASS | meta_canonical IS NULL OR = '' OR = src_unparsed | Not set |
| Property | Value |
|---|---|
| URL | https://developer.android.com/tools |
| Last Crawled | 2026-03-31 20:47:44 (16 days ago) |
| First Indexed | 2014-10-03 20:53:20 (11 years ago) |
| HTTP Status Code | 200 |
| Meta Title | Command-line tools | Android Studio | Android Developers |
| Meta Description | Find out about the most important command-line tools that are available, organized by the packages in which they're delivered. |
| Meta Canonical | null |
| Boilerpipe Text | Command-line tools
Stay organized with collections
Save and categorize content based on your preferences.
On this page
Set environment variables
Android SDK Command-Line Tools
Android SDK Build Tools
Android SDK Platform Tools
Android Emulator
Jetifier
The Android SDK is composed of multiple packages that are required for app development.
This page lists the most important command-line tools that are
available, organized by the packages in which they're delivered.
You can install and update each package using
Android Studio's
SDK Manager
or the
sdkmanager
command-line tool.
All of the packages are downloaded into your Android SDK directory, which
you can locate as follows:
In Android Studio, click
File > Project Structure
.
Select
SDK Location
in the left pane.
The path is shown under
Android SDK location
.
Set environment variables
We recommend setting the environment variable for
ANDROID_HOME
when using
the command line. Also, set your command search path to include
ANDROID_HOME/tools
,
ANDROID_HOME/tools/bin
, and
ANDROID_HOME/platform-tools
to find the most common tools. The steps
vary depending on your OS, but read
How to set environment variables
for general guidance.
Located in:
android_sdk
/cmdline-tools/
version
/bin/
Note: The Android SDK Command-Line Tools package, located in
cmdline-tools
, replaces the SDK Tools package, located in
tools
. With
the new package, you can select the version of the command line tools you want to install,
and you can install multiple versions at a time. With the old package, you can only install the
latest version of the tools. Thus, the new package lets you depend on specific versions of the
command-line tools without having your code break when new versions are released. For information
about the deprecated SDK Tools package, see the
SDK Tools release notes
.
If you are not using Android Studio, you can
download the command-line tools package
.
apkanalyzer
Provides insight into the composition of your APK after the build process completes.
avdmanager
Lets you create and manage Android Virtual Devices (AVDs)
from the command line.
lint
Scans code to help you identify and correct problems
with the structural quality of your code.
retrace
For applications compiled by R8,
retrace
decodes an obfuscated stack trace that
maps back to your original source code.
sdkmanager
Lets you view, install, update, and uninstall packages for the Android SDK
Android SDK Build Tools
Located in:
android_sdk
/build-tools/
version
/
See
SDK Build Tools release notes
for more
information.
This package is required to build Android apps. Most of the tools in this package are
invoked by the build tools and not intended for you. However, the following
command-line tools might be useful:
AAPT2
Parses, indexes, and compiles Android resources into a binary format that
is optimized for the Android platform and packages the compiled resources
into a single output.
apksigner
Signs APKs and checks whether APK signatures will be verified
successfully on all platform versions that a given APK supports.
zipalign
Optimizes APK files by ensuring that all uncompressed data starts with
a particular alignment relative to the start of the file.
Note:
You can have multiple versions of the build tools
to build your app for different Android versions.
Android SDK Platform Tools
Located in:
android_sdk
/platform-tools/
See
SDK Platform Tools release notes
for more
information.
These tools are updated for every new version of the Android platform to support new features
and fix or improve the tools, and each update
is backward compatible with earlier platform versions.
In addition to downloading from the SDK Manager, you can download the SDK Platform Tools
here
.
adb
Android Debug Bridge (adb) is a versatile tool that lets you manage the state of an
emulator instance or Android-powered device. You can also use it to install an APK on a
device.
etc1tool
A command-line utility that lets you encode PNG images to the ETC1
compression standard and decode ETC1 compressed images back to PNG.
fastboot
Flashes a device with platform and other system images. For flashing instructions,
see
Factory Images for Nexus and
Pixel Devices
.
logcat
Invoked by adb to view app and system logs.
Android Emulator
Located in:
android_sdk
/emulator/
See
Android Emulator release notes
for more
information.
This package is required to use the Android Emulator. It includes the following:
emulator
A QEMU-based device-emulation tool that you can use to debug and test
your applications in an actual Android run-time environment.
mksdcard
Helps you create a disk image that you can use with the emulator
to simulate the presence of an external storage card, such as an SD card.
Note:
Prior to revision 25.3.0, the emulator tools were included with the
SDK Tools package.
Jetifier
Jetifier
reads a library that uses
Support Library classes and outputs an equivalent library that uses the newer
AndroidX classes.
No recommendations at this time.
Try
signing in
to your Google account.
Content and code samples on this page are subject to the licenses described in the
Content License
. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-11-19 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-11-19 UTC."],[],[]] |
| Markdown | [Skip to main content](https://developer.android.com/tools#main-content)
[](https://developer.android.com/)
More
[Essentials](https://developer.android.com/get-started)
- Build AI experiences
- Build AI-powered Android apps with Gemini APIs and more.
- [Get started](https://developer.android.com/ai)
- Get started
- Start by creating your first app. Go deeper with our training courses or explore app development on your own.
- [Hello world](https://developer.android.com/get-started/overview)
- [Training courses](https://developer.android.com/courses)
- [Tutorials](https://developer.android.com/get-started/codelabs)
- [Compose for teams](https://developer.android.com/develop/ui/compose/adopt)
- [Kotlin for Android](https://developer.android.com/kotlin)
- [Monetization with Play ↗️](https://play.google.com/console/about/guides/play-commerce/)
- [Android Developer Verification](https://developer.android.com/developer-verification)
- Extend by device
- Build apps that give your users seamless experiences from phones to tablets, watches, headsets, and more.
- [Adaptive apps](https://developer.android.com/adaptive-apps)
- [Android XR](https://developer.android.com/xr)
- [Wear OS](https://developer.android.com/wear)
- [Android for Cars](https://developer.android.com/cars)
- [Android TV](https://developer.android.com/tv)
- [ChromeOS](https://developer.android.com/chrome-os)
- Build by category
- Learn to build for your use case by following Google's prescriptive and opinionated guidance.
- [Games](https://developer.android.com/games)
- [Camera & media](https://developer.android.com/media)
- [Social & messaging](https://developer.android.com/social-and-messaging)
- [Health & fitness](https://developer.android.com/health-and-fitness)
- [Productivity](https://developer.android.com/productivity)
- [Enterprise apps](https://developer.android.com/work/overview)
- Get the latest
- Stay in touch with the latest releases throughout the year, join our preview programs, and give us your feedback.
- [Latest updates](https://developer.android.com/latest-updates)
- [Experimental updates](https://developer.android.com/latest-updates/experimental)
- [Android Studio preview](https://developer.android.com/studio/preview)
- [Jetpack & Compose libraries](https://developer.android.com/jetpack/androidx/versions)
- [Wear OS releases](https://developer.android.com/training/wearables/versions/latest)
- [Privacy Sandbox ↗️](https://developer.android.com/design-for-safety/privacy-sandbox)
[Design & Plan](https://developer.android.com/design)
- Excellent Experiences
- Build the best experiences for your best users.
- [Learn more](https://developer.android.com/quality/excellent)
- UI Design
- Design a beautiful user interface using Android best practices.
- [Design for Android](https://developer.android.com/design/ui)
- [Mobile](https://developer.android.com/design/ui/mobile)
- [Desktop experiences](https://developer.android.com/design/ui/desktop)
- [XR Headsets & XR Glasses](https://developer.android.com/design/ui/xr)
- [AI Glasses](https://developer.android.com/design/ui/ai-glasses)
- [Widgets](https://developer.android.com/design/ui/widget)
- [Wear OS](https://developer.android.com/design/ui/wear)
- [Android TV](https://developer.android.com/design/ui/tv)
- [Android for Cars](https://developer.android.com/design/ui/cars)
- Architecture
- Design robust, testable, and maintainable app logic and services.
- [Introduction](https://developer.android.com/topic/architecture/intro)
- [Libraries](https://developer.android.com/topic/libraries/view-binding)
- [Navigation](https://developer.android.com/guide/navigation/navigation-principles)
- [Modularization](https://developer.android.com/topic/modularization)
- [Testing](https://developer.android.com/training/testing/fundamentals)
- [Kotlin Multiplatform](https://developer.android.com/kotlin/multiplatform)
- Quality
- Plan for app quality and align with Play store guidelines.
- [Overview](https://developer.android.com/quality)
- [Core value](https://developer.android.com/quality/core-value)
- [User experience](https://developer.android.com/quality/user-experience)
- [Accessibility](https://developer.android.com/guide/topics/ui/accessibility)
- [Technical quality](https://developer.android.com/quality/technical)
- [Excellent Experiences](https://developer.android.com/quality/excellent)
- Security
- Safeguard users against threats and ensure a secure Android experience.
- [Overview](https://developer.android.com/security)
- [Privacy](https://developer.android.com/privacy)
- [Permissions](https://developer.android.com/privacy#app-permissions)
- [Identity](https://developer.android.com/identity)
- [Fraud prevention](https://developer.android.com/security/fraud-prevention)
[Develop](https://developer.android.com/develop)
- Gemini in Android Studio
- Your AI development companion for Android development.
- [Learn more](https://developer.android.com/gemini-in-android)
- [Get Android Studio](https://developer.android.com/studio)
- Core areas
- Get the samples and docs for the features you need.
- [Samples](https://developer.android.com/samples)
- [User interfaces](https://developer.android.com/develop/ui)
- [Background work](https://developer.android.com/develop/background-work)
- [Data and files](https://developer.android.com/guide/topics/data)
- [Connectivity](https://developer.android.com/develop/connectivity)
- [All core areas ⤵️](https://developer.android.com/develop#core-areas)
- Tools and workflow
- Use the IDE to write and build your app, or create your own pipeline.
- [Write and debug code](https://developer.android.com/studio/write)
- [Build projects](https://developer.android.com/build/gradle-build-overview)
- [Test your app](https://developer.android.com/training/testing)
- [Performance](https://developer.android.com/topic/performance/overview)
- [Command-line tools](https://developer.android.com/tools)
- [Gradle plugin API](https://developer.android.com/reference/tools/gradle-api)
- [Android Bench](https://developer.android.com/bench)
- Device tech
- Write code for form factors. Connect devices and share data.
- [Adaptive UI](https://developer.android.com/guide/topics/large-screens/get-started-with-large-screens)
- [Wear OS](https://developer.android.com/training/wearables)
- [Android XR](https://developer.android.com/develop/xr)
- [Android Health](https://developer.android.com/health-and-fitness/guides)
- [Android for Cars](https://developer.android.com/training/cars)
- [Android TV](https://developer.android.com/training/tv)
- [All devices ⤵️](https://developer.android.com/develop#devices)
- Libraries
- Browse API reference documentation with all the details.
- [Android platform](https://developer.android.com/reference/packages)
- [Jetpack libraries](https://developer.android.com/jetpack/androidx/explorer)
- [Compose libraries](https://developer.android.com/jetpack/androidx/releases/compose)
- [Google Play services ↗️](https://developers.google.com/android/reference/packages)
- [Google Play SDK index ↗️](https://play.google.com/sdks)
[Google Play](https://developer.android.com/distribute)
- Play Console
- Publish your app or game and grow your business on Google Play.
- [Go to Play Console](https://play.google.com/console)
- [Learn more ↗️](https://play.google.com/console/about/)
- Fundamentals
- Learn how to engage users, monitize, and secure your app.
- [Play Monetization](https://developer.android.com/distribute/play-billing)
- [Play Integrity](https://developer.android.com/google/play/integrity)
- [Play Policies](https://developer.android.com/distribute/play-policies)
- [Play Programs ↗️](https://play.google.com/console/about/programs)
- Games Dev Center
- Develop and deliver games. Get tools, downloads, and samples.
- [Overview](https://developer.android.com/games)
- [Play Asset Delivery](https://developer.android.com/guide/playcore/asset-delivery)
- [Play Games Services](https://developer.android.com/games/pgs/overview)
- [Play Games on PC](https://developer.android.com/games/playgames/overview)
- [All Play guides ⤵️](https://developer.android.com/distribute)
- Libraries
- Browse API reference documentation with all the details.
- [Play Feature Delivery](https://developer.android.com/guide/playcore/feature-delivery)
- [Play In-app Updates](https://developer.android.com/guide/playcore/in-app-updates)
- [Play In-app Reviews](https://developer.android.com/guide/playcore/in-app-review)
- [Play Install Referrer](https://developer.android.com/google/play/installreferrer)
- [Google Play services ↗️](https://developers.google.com/android/reference/packages)
- [Google Play SDK index ↗️](https://play.google.com/sdks)
- [All Play libraries ⤵️](https://developer.android.com/distribute)
- Tools & resources
- Tools for publishing, promoting, and managing your app.
- [Android App Bundles](https://developer.android.com/guide/app-bundle)
- [Brand & marketing](https://developer.android.com/distribute/marketing-tools)
- [Play Console APIs ↗️](https://developers.google.com/android-publisher/api-ref/rest)
[Community](https://developer.android.com/community)
- [English](https://developer.android.com/tools)
- [Deutsch](https://developer.android.com/tools?hl=de)
- [Español – América Latina](https://developer.android.com/tools?hl=es-419)
- [Français](https://developer.android.com/tools?hl=fr)
- [Indonesia](https://developer.android.com/tools?hl=id)
- [Italiano](https://developer.android.com/tools?hl=it)
- [Polski](https://developer.android.com/tools?hl=pl)
- [Português – Brasil](https://developer.android.com/tools?hl=pt-br)
- [Tiếng Việt](https://developer.android.com/tools?hl=vi)
- [Türkçe](https://developer.android.com/tools?hl=tr)
- [Русский](https://developer.android.com/tools?hl=ru)
- [עברית](https://developer.android.com/tools?hl=he)
- [العربيّة](https://developer.android.com/tools?hl=ar)
- [فارسی](https://developer.android.com/tools?hl=fa)
- [हिंदी](https://developer.android.com/tools?hl=hi)
- [বাংলা](https://developer.android.com/tools?hl=bn)
- [ภาษาไทย](https://developer.android.com/tools?hl=th)
- [中文 – 简体](https://developer.android.com/tools?hl=zh-cn)
- [中文 – 繁體](https://developer.android.com/tools?hl=zh-tw)
- [日本語](https://developer.android.com/tools?hl=ja)
- [한국어](https://developer.android.com/tools?hl=ko)
[Android Studio](https://developer.android.com/studio)
[Sign in](https://developer.android.com/_d/signin?continue=https%3A%2F%2Fdeveloper.android.com%2Ftools&prompt=select_account)
- [Android Studio](https://developer.android.com/studio)
[Download](https://developer.android.com/studio)
[IDE guides](https://developer.android.com/studio/intro)
[Gemini in Android Studio](https://developer.android.com/gemini-in-android)
[Android Studio preview](https://developer.android.com/studio/preview)
[SDK tools guides](https://developer.android.com/tools)
More
[Gradle build guides](https://developer.android.com/build/gradle-build-overview)
[](https://developer.android.com/)
- [Essentials](https://developer.android.com/get-started)
- More
- [Design & Plan](https://developer.android.com/design)
- More
- [Develop](https://developer.android.com/develop)
- More
- [Download](https://developer.android.com/studio)
- [IDE guides](https://developer.android.com/studio/intro)
- [Gemini in Android Studio](https://developer.android.com/gemini-in-android)
- [Android Studio preview](https://developer.android.com/studio/preview)
- [Gradle build guides](https://developer.android.com/build/gradle-build-overview)
- [SDK tools guides](https://developer.android.com/tools)
- [Google Play](https://developer.android.com/distribute)
- More
- [Community](https://developer.android.com/community)
- [Android Studio](https://developer.android.com/studio)
- What's new in SDK Tools
- [SDK build tools release notes](https://developer.android.com/tools/releases/build-tools)
- [SDK command line tools release notes](https://developer.android.com/tools/releases/cmdline-tools)
- [SDK platform release notes](https://developer.android.com/tools/releases/platforms)
- [SDK platform tools release notes](https://developer.android.com/tools/releases/platform-tools)
- Command line tools
- [Overview](https://developer.android.com/tools)
- [aapt2](https://developer.android.com/tools/aapt2)
- [adb](https://developer.android.com/tools/adb)
- [apkanalyzer](https://developer.android.com/tools/apkanalyzer)
- [apksigner](https://developer.android.com/tools/apksigner)
- [avdmanager](https://developer.android.com/tools/avdmanager)
- [bmgr](https://developer.android.com/tools/bmgr)
- [bundletool](https://developer.android.com/tools/bundletool)
- [d8](https://developer.android.com/tools/d8)
- [dmtracedump](https://developer.android.com/tools/dmtracedump)
- [dumpsys](https://developer.android.com/tools/dumpsys)
- [etc1tool](https://developer.android.com/tools/etc1tool)
- [jetifier-standalone](https://developer.android.com/tools/jetifier)
- [logcat](https://developer.android.com/tools/logcat)
- [mksdcard](https://developer.android.com/tools/mksdcard)
- [retrace](https://developer.android.com/tools/retrace)
- [sdkmanager](https://developer.android.com/tools/sdkmanager)
- [sqlite3](https://developer.android.com/tools/sqlite3)
- [systrace ⍈](https://developer.android.com/topic/performance/tracing/command-line)
- [perfetto](https://developer.android.com/tools/perfetto)
- [zipalign](https://developer.android.com/tools/zipalign)
- [Environment variables](https://developer.android.com/tools/variables)
- Build AI experiences
- [Get started](https://developer.android.com/ai)
- Get started
- [Hello world](https://developer.android.com/get-started/overview)
- [Training courses](https://developer.android.com/courses)
- [Tutorials](https://developer.android.com/get-started/codelabs)
- [Compose for teams](https://developer.android.com/develop/ui/compose/adopt)
- [Kotlin for Android](https://developer.android.com/kotlin)
- [Monetization with Play ↗️](https://play.google.com/console/about/guides/play-commerce/)
- [Android Developer Verification](https://developer.android.com/developer-verification)
- Extend by device
- [Adaptive apps](https://developer.android.com/adaptive-apps)
- [Android XR](https://developer.android.com/xr)
- [Wear OS](https://developer.android.com/wear)
- [Android for Cars](https://developer.android.com/cars)
- [Android TV](https://developer.android.com/tv)
- [ChromeOS](https://developer.android.com/chrome-os)
- Build by category
- [Games](https://developer.android.com/games)
- [Camera & media](https://developer.android.com/media)
- [Social & messaging](https://developer.android.com/social-and-messaging)
- [Health & fitness](https://developer.android.com/health-and-fitness)
- [Productivity](https://developer.android.com/productivity)
- [Enterprise apps](https://developer.android.com/work/overview)
- Get the latest
- [Latest updates](https://developer.android.com/latest-updates)
- [Experimental updates](https://developer.android.com/latest-updates/experimental)
- [Android Studio preview](https://developer.android.com/studio/preview)
- [Jetpack & Compose libraries](https://developer.android.com/jetpack/androidx/versions)
- [Wear OS releases](https://developer.android.com/training/wearables/versions/latest)
- [Privacy Sandbox ↗️](https://developer.android.com/design-for-safety/privacy-sandbox)
- Excellent Experiences
- [Learn more](https://developer.android.com/quality/excellent)
- UI Design
- [Design for Android](https://developer.android.com/design/ui)
- [Mobile](https://developer.android.com/design/ui/mobile)
- [Desktop experiences](https://developer.android.com/design/ui/desktop)
- [XR Headsets & XR Glasses](https://developer.android.com/design/ui/xr)
- [AI Glasses](https://developer.android.com/design/ui/ai-glasses)
- [Widgets](https://developer.android.com/design/ui/widget)
- [Wear OS](https://developer.android.com/design/ui/wear)
- [Android TV](https://developer.android.com/design/ui/tv)
- [Android for Cars](https://developer.android.com/design/ui/cars)
- Architecture
- [Introduction](https://developer.android.com/topic/architecture/intro)
- [Libraries](https://developer.android.com/topic/libraries/view-binding)
- [Navigation](https://developer.android.com/guide/navigation/navigation-principles)
- [Modularization](https://developer.android.com/topic/modularization)
- [Testing](https://developer.android.com/training/testing/fundamentals)
- [Kotlin Multiplatform](https://developer.android.com/kotlin/multiplatform)
- Quality
- [Overview](https://developer.android.com/quality)
- [Core value](https://developer.android.com/quality/core-value)
- [User experience](https://developer.android.com/quality/user-experience)
- [Accessibility](https://developer.android.com/guide/topics/ui/accessibility)
- [Technical quality](https://developer.android.com/quality/technical)
- [Excellent Experiences](https://developer.android.com/quality/excellent)
- Security
- [Overview](https://developer.android.com/security)
- [Privacy](https://developer.android.com/privacy)
- [Permissions](https://developer.android.com/privacy#app-permissions)
- [Identity](https://developer.android.com/identity)
- [Fraud prevention](https://developer.android.com/security/fraud-prevention)
- Gemini in Android Studio
- [Learn more](https://developer.android.com/gemini-in-android)
- [Get Android Studio](https://developer.android.com/studio)
- Core areas
- [Samples](https://developer.android.com/samples)
- [User interfaces](https://developer.android.com/develop/ui)
- [Background work](https://developer.android.com/develop/background-work)
- [Data and files](https://developer.android.com/guide/topics/data)
- [Connectivity](https://developer.android.com/develop/connectivity)
- [All core areas ⤵️](https://developer.android.com/develop#core-areas)
- Tools and workflow
- [Write and debug code](https://developer.android.com/studio/write)
- [Build projects](https://developer.android.com/build/gradle-build-overview)
- [Test your app](https://developer.android.com/training/testing)
- [Performance](https://developer.android.com/topic/performance/overview)
- [Command-line tools](https://developer.android.com/tools)
- [Gradle plugin API](https://developer.android.com/reference/tools/gradle-api)
- [Android Bench](https://developer.android.com/bench)
- Device tech
- [Adaptive UI](https://developer.android.com/guide/topics/large-screens/get-started-with-large-screens)
- [Wear OS](https://developer.android.com/training/wearables)
- [Android XR](https://developer.android.com/develop/xr)
- [Android Health](https://developer.android.com/health-and-fitness/guides)
- [Android for Cars](https://developer.android.com/training/cars)
- [Android TV](https://developer.android.com/training/tv)
- [All devices ⤵️](https://developer.android.com/develop#devices)
- Libraries
- [Android platform](https://developer.android.com/reference/packages)
- [Jetpack libraries](https://developer.android.com/jetpack/androidx/explorer)
- [Compose libraries](https://developer.android.com/jetpack/androidx/releases/compose)
- [Google Play services ↗️](https://developers.google.com/android/reference/packages)
- [Google Play SDK index ↗️](https://play.google.com/sdks)
- Play Console
- [Go to Play Console](https://play.google.com/console)
- [Learn more ↗️](https://play.google.com/console/about/)
- Fundamentals
- [Play Monetization](https://developer.android.com/distribute/play-billing)
- [Play Integrity](https://developer.android.com/google/play/integrity)
- [Play Policies](https://developer.android.com/distribute/play-policies)
- [Play Programs ↗️](https://play.google.com/console/about/programs)
- Games Dev Center
- [Overview](https://developer.android.com/games)
- [Play Asset Delivery](https://developer.android.com/guide/playcore/asset-delivery)
- [Play Games Services](https://developer.android.com/games/pgs/overview)
- [Play Games on PC](https://developer.android.com/games/playgames/overview)
- [All Play guides ⤵️](https://developer.android.com/distribute)
- Libraries
- [Play Feature Delivery](https://developer.android.com/guide/playcore/feature-delivery)
- [Play In-app Updates](https://developer.android.com/guide/playcore/in-app-updates)
- [Play In-app Reviews](https://developer.android.com/guide/playcore/in-app-review)
- [Play Install Referrer](https://developer.android.com/google/play/installreferrer)
- [Google Play services ↗️](https://developers.google.com/android/reference/packages)
- [Google Play SDK index ↗️](https://play.google.com/sdks)
- [All Play libraries ⤵️](https://developer.android.com/distribute)
- Tools & resources
- [Android App Bundles](https://developer.android.com/guide/app-bundle)
- [Brand & marketing](https://developer.android.com/distribute/marketing-tools)
- [Play Console APIs ↗️](https://developers.google.com/android-publisher/api-ref/rest)
- On this page
- [Set environment variables](https://developer.android.com/tools#environment-variables)
- [Android SDK Command-Line Tools](https://developer.android.com/tools#tools-sdk)
- [Android SDK Build Tools](https://developer.android.com/tools#tools-build)
- [Android SDK Platform Tools](https://developer.android.com/tools#tools-platform)
- [Android Emulator](https://developer.android.com/tools#tools-emulator)
- [Jetifier](https://developer.android.com/tools#jetifier)
- [Android Developers](https://developer.android.com/)
- [Develop](https://developer.android.com/develop)
- [Android Studio](https://developer.android.com/studio)
- [SDK tools guides](https://developer.android.com/tools)
Was this helpful?
# Command-line toolsStay organized with collections Save and categorize content based on your preferences.
- On this page
- [Set environment variables](https://developer.android.com/tools#environment-variables)
- [Android SDK Command-Line Tools](https://developer.android.com/tools#tools-sdk)
- [Android SDK Build Tools](https://developer.android.com/tools#tools-build)
- [Android SDK Platform Tools](https://developer.android.com/tools#tools-platform)
- [Android Emulator](https://developer.android.com/tools#tools-emulator)
- [Jetifier](https://developer.android.com/tools#jetifier)
The Android SDK is composed of multiple packages that are required for app development. This page lists the most important command-line tools that are available, organized by the packages in which they're delivered.
You can install and update each package using Android Studio's [SDK Manager](https://developer.android.com/studio/intro/update#sdk-manager) or the [`sdkmanager`](https://developer.android.com/studio/command-line/sdkmanager) command-line tool. All of the packages are downloaded into your Android SDK directory, which you can locate as follows:
1. In Android Studio, click **File \> Project Structure**.
2. Select **SDK Location** in the left pane. The path is shown under **Android SDK location**.
### Set environment variables
We recommend setting the environment variable for [`ANDROID_HOME`](https://developer.android.com/studio/command-line/variables#envar) when using the command line. Also, set your command search path to include `ANDROID_HOME/tools`, `ANDROID_HOME/tools/bin`, and `ANDROID_HOME/platform-tools` to find the most common tools. The steps vary depending on your OS, but read [How to set environment variables](https://developer.android.com/studio/command-line/variables#set) for general guidance.
## Android SDK Command-Line Tools
Located in: `android_sdk/cmdline-tools/version/bin/`
Note: The Android SDK Command-Line Tools package, located in `cmdline-tools`, replaces the SDK Tools package, located in `tools`. With the new package, you can select the version of the command line tools you want to install, and you can install multiple versions at a time. With the old package, you can only install the latest version of the tools. Thus, the new package lets you depend on specific versions of the command-line tools without having your code break when new versions are released. For information about the deprecated SDK Tools package, see the [SDK Tools release notes](https://developer.android.com/studio/releases/sdk-tools).
If you are not using Android Studio, you can [download the command-line tools package](https://developer.android.com/studio#command-line-tools-only).
`apkanalyzer`
Provides insight into the composition of your APK after the build process completes.
`avdmanager`
Lets you create and manage Android Virtual Devices (AVDs) from the command line.
`lint`
Scans code to help you identify and correct problems with the structural quality of your code.
[`retrace`](https://developer.android.com/studio/command-line/retrace)
For applications compiled by R8, `retrace` decodes an obfuscated stack trace that maps back to your original source code.
`sdkmanager`
Lets you view, install, update, and uninstall packages for the Android SDK
## Android SDK Build Tools
Located in: `android_sdk/build-tools/version/`
See [SDK Build Tools release notes](https://developer.android.com/studio/releases/build-tools) for more information.
This package is required to build Android apps. Most of the tools in this package are invoked by the build tools and not intended for you. However, the following command-line tools might be useful:
[`AAPT2`](https://developer.android.com/studio/command-line/aapt2)
Parses, indexes, and compiles Android resources into a binary format that is optimized for the Android platform and packages the compiled resources into a single output.
[`apksigner`](https://developer.android.com/studio/command-line/apksigner)
Signs APKs and checks whether APK signatures will be verified successfully on all platform versions that a given APK supports.
[`zipalign`](https://developer.android.com/studio/command-line/zipalign)
Optimizes APK files by ensuring that all uncompressed data starts with a particular alignment relative to the start of the file.
**Note:** You can have multiple versions of the build tools to build your app for different Android versions.
## Android SDK Platform Tools
Located in: `android_sdk/platform-tools/`
See [SDK Platform Tools release notes](https://developer.android.com/studio/releases/platform-tools) for more information.
These tools are updated for every new version of the Android platform to support new features and fix or improve the tools, and each update is backward compatible with earlier platform versions.
In addition to downloading from the SDK Manager, you can download the SDK Platform Tools [here](https://developer.android.com/studio/releases/platform-tools#downloads.html).
[`adb`](https://developer.android.com/studio/command-line/adb)
Android Debug Bridge (adb) is a versatile tool that lets you manage the state of an emulator instance or Android-powered device. You can also use it to install an APK on a device.
[`etc1tool`](https://developer.android.com/studio/command-line/etc1tool)
A command-line utility that lets you encode PNG images to the ETC1 compression standard and decode ETC1 compressed images back to PNG.
`fastboot`
Flashes a device with platform and other system images. For flashing instructions, see [Factory Images for Nexus and Pixel Devices](https://developers.google.com/android/images).
[`logcat`](https://developer.android.com/studio/command-line/logcat)
Invoked by adb to view app and system logs.
## Android Emulator
Located in: `android_sdk/emulator/`
See [Android Emulator release notes](https://developer.android.com/studio/releases/emulator) for more information.
This package is required to use the Android Emulator. It includes the following:
`emulator`
A QEMU-based device-emulation tool that you can use to debug and test your applications in an actual Android run-time environment.
`mksdcard`
Helps you create a disk image that you can use with the emulator to simulate the presence of an external storage card, such as an SD card.
**Note:** Prior to revision 25.3.0, the emulator tools were included with the SDK Tools package.
## Jetifier
[Jetifier](https://developer.android.com/studio/command-line/jetifier) reads a library that uses Support Library classes and outputs an equivalent library that uses the newer AndroidX classes.
Was this helpful?
No recommendations at this time.
Try [signing in](https://developer.android.com/tools) to your Google account.
Content and code samples on this page are subject to the licenses described in the [Content License](https://developer.android.com/license). Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-11-19 UTC.
\[\[\["Easy to understand","easyToUnderstand","thumb-up"\],\["Solved my problem","solvedMyProblem","thumb-up"\],\["Other","otherUp","thumb-up"\]\],\[\["Missing the information I need","missingTheInformationINeed","thumb-down"\],\["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"\],\["Out of date","outOfDate","thumb-down"\],\["Samples / code issue","samplesCodeIssue","thumb-down"\],\["Other","otherDown","thumb-down"\]\],\["Last updated 2025-11-19 UTC."\],\[\],\[\]\]
- [ X](https://x.com/AndroidDev)
Follow @AndroidDev on X
- [ YouTube](https://www.youtube.com/user/androiddevelopers)
Check out Android Developers on YouTube
- [ LinkedIn](https://www.linkedin.com/showcase/androiddev)
Connect with the Android Developers community on LinkedIn
- ### More Android
- [Android](https://www.android.com/)
- [Android for Enterprise](https://www.android.com/enterprise/)
- [Security](https://www.android.com/security-center/)
- [Source](https://source.android.com/)
- [News](https://developer.android.com/news)
- [Blog](https://android-developers.googleblog.com/)
- [Podcasts](https://developer.android.com/podcasts)
- ### Discover
- [Gaming](https://developer.android.com/games)
- [Machine Learning](https://developer.android.com/ml)
- [Health & Fitness](https://developer.android.com/health-and-fitness)
- [Camera & Media](https://developer.android.com/media)
- [Privacy](https://developer.android.com/privacy)
- [5G](https://developer.android.com/training/connectivity/5g)
- ### Android Devices
- [Large screens](https://developer.android.com/large-screens)
- [Wear OS](https://developer.android.com/wear)
- [ChromeOS devices](https://developer.android.com/chrome-os)
- [Android for cars](https://developer.android.com/cars)
- [Android TV](https://developer.android.com/tv)
- ### Releases
- [Android 15](https://developer.android.com/about/versions/15)
- [Android 14](https://developer.android.com/about/versions/14)
- [Android 13](https://developer.android.com/about/versions/13)
- [Android 12](https://developer.android.com/about/versions/12)
- [Android 11](https://developer.android.com/about/versions/11)
- [Android 10](https://developer.android.com/about/versions/10)
- [Pie](https://developer.android.com/about/versions/pie)
- ### Documentation and Downloads
- [Android Studio guide](https://developer.android.com/studio/intro)
- [Developers guides](https://developer.android.com/guide)
- [API reference](https://developer.android.com/reference)
- [Download Studio](https://developer.android.com/studio)
- [Android NDK](https://developer.android.com/ndk)
- ### Support
- [Report platform bug](https://issuetracker.google.com/issues/new?component=190923&template=841312)
- [Report documentation bug](https://issuetracker.google.com/issues/new?component=192697)
- [Google Play support](https://support.google.com/googleplay/android-developer)
- [Join research studies](https://g.co/userresearch/androiddeveloperfooter)
[](https://developers.google.com/)
- [Android](https://developer.android.com/)
- [Chrome](https://developer.chrome.com/home)
- [Firebase](https://firebase.google.com/)
- [Google Cloud Platform](https://cloud.google.com/)
- [All products](https://developers.google.com/products/)
- [Privacy](https://policies.google.com/privacy)
- [License](https://developer.android.com/license)
- [Brand guidelines](https://developer.android.com/distribute/marketing-tools/brand-guidelines)
- [Manage cookies](https://developer.android.com/tools)
- Get news and tips by email [Subscribe](https://developer.android.com/updates)
- [English](https://developer.android.com/tools)
- [Deutsch](https://developer.android.com/tools?hl=de)
- [Español – América Latina](https://developer.android.com/tools?hl=es-419)
- [Français](https://developer.android.com/tools?hl=fr)
- [Indonesia](https://developer.android.com/tools?hl=id)
- [Italiano](https://developer.android.com/tools?hl=it)
- [Polski](https://developer.android.com/tools?hl=pl)
- [Português – Brasil](https://developer.android.com/tools?hl=pt-br)
- [Tiếng Việt](https://developer.android.com/tools?hl=vi)
- [Türkçe](https://developer.android.com/tools?hl=tr)
- [Русский](https://developer.android.com/tools?hl=ru)
- [עברית](https://developer.android.com/tools?hl=he)
- [العربيّة](https://developer.android.com/tools?hl=ar)
- [فارسی](https://developer.android.com/tools?hl=fa)
- [हिंदी](https://developer.android.com/tools?hl=hi)
- [বাংলা](https://developer.android.com/tools?hl=bn)
- [ภาษาไทย](https://developer.android.com/tools?hl=th)
- [中文 – 简体](https://developer.android.com/tools?hl=zh-cn)
- [中文 – 繁體](https://developer.android.com/tools?hl=zh-tw)
- [日本語](https://developer.android.com/tools?hl=ja)
- [한국어](https://developer.android.com/tools?hl=ko) |
| Readable Markdown | ## Command-line toolsStay organized with collections Save and categorize content based on your preferences.
- On this page
- [Set environment variables](https://developer.android.com/tools#environment-variables)
- [Android SDK Command-Line Tools](https://developer.android.com/tools#tools-sdk)
- [Android SDK Build Tools](https://developer.android.com/tools#tools-build)
- [Android SDK Platform Tools](https://developer.android.com/tools#tools-platform)
- [Android Emulator](https://developer.android.com/tools#tools-emulator)
- [Jetifier](https://developer.android.com/tools#jetifier)
The Android SDK is composed of multiple packages that are required for app development. This page lists the most important command-line tools that are available, organized by the packages in which they're delivered.
You can install and update each package using Android Studio's [SDK Manager](https://developer.android.com/studio/intro/update#sdk-manager) or the [`sdkmanager`](https://developer.android.com/studio/command-line/sdkmanager) command-line tool. All of the packages are downloaded into your Android SDK directory, which you can locate as follows:
1. In Android Studio, click **File \> Project Structure**.
2. Select **SDK Location** in the left pane. The path is shown under **Android SDK location**.
### Set environment variables
We recommend setting the environment variable for [`ANDROID_HOME`](https://developer.android.com/studio/command-line/variables#envar) when using the command line. Also, set your command search path to include `ANDROID_HOME/tools`, `ANDROID_HOME/tools/bin`, and `ANDROID_HOME/platform-tools` to find the most common tools. The steps vary depending on your OS, but read [How to set environment variables](https://developer.android.com/studio/command-line/variables#set) for general guidance.
Located in: `android_sdk/cmdline-tools/version/bin/`
Note: The Android SDK Command-Line Tools package, located in `cmdline-tools`, replaces the SDK Tools package, located in `tools`. With the new package, you can select the version of the command line tools you want to install, and you can install multiple versions at a time. With the old package, you can only install the latest version of the tools. Thus, the new package lets you depend on specific versions of the command-line tools without having your code break when new versions are released. For information about the deprecated SDK Tools package, see the [SDK Tools release notes](https://developer.android.com/studio/releases/sdk-tools).
If you are not using Android Studio, you can [download the command-line tools package](https://developer.android.com/studio#command-line-tools-only).
`apkanalyzer`
Provides insight into the composition of your APK after the build process completes.
`avdmanager`
Lets you create and manage Android Virtual Devices (AVDs) from the command line.
`lint`
Scans code to help you identify and correct problems with the structural quality of your code.
[`retrace`](https://developer.android.com/studio/command-line/retrace)
For applications compiled by R8, `retrace` decodes an obfuscated stack trace that maps back to your original source code.
`sdkmanager`
Lets you view, install, update, and uninstall packages for the Android SDK
## Android SDK Build Tools
Located in: `android_sdk/build-tools/version/`
See [SDK Build Tools release notes](https://developer.android.com/studio/releases/build-tools) for more information.
This package is required to build Android apps. Most of the tools in this package are invoked by the build tools and not intended for you. However, the following command-line tools might be useful:
[`AAPT2`](https://developer.android.com/studio/command-line/aapt2)
Parses, indexes, and compiles Android resources into a binary format that is optimized for the Android platform and packages the compiled resources into a single output.
[`apksigner`](https://developer.android.com/studio/command-line/apksigner)
Signs APKs and checks whether APK signatures will be verified successfully on all platform versions that a given APK supports.
[`zipalign`](https://developer.android.com/studio/command-line/zipalign)
Optimizes APK files by ensuring that all uncompressed data starts with a particular alignment relative to the start of the file.
**Note:** You can have multiple versions of the build tools to build your app for different Android versions.
## Android SDK Platform Tools
Located in: `android_sdk/platform-tools/`
See [SDK Platform Tools release notes](https://developer.android.com/studio/releases/platform-tools) for more information.
These tools are updated for every new version of the Android platform to support new features and fix or improve the tools, and each update is backward compatible with earlier platform versions.
In addition to downloading from the SDK Manager, you can download the SDK Platform Tools [here](https://developer.android.com/studio/releases/platform-tools#downloads.html).
[`adb`](https://developer.android.com/studio/command-line/adb)
Android Debug Bridge (adb) is a versatile tool that lets you manage the state of an emulator instance or Android-powered device. You can also use it to install an APK on a device.
[`etc1tool`](https://developer.android.com/studio/command-line/etc1tool)
A command-line utility that lets you encode PNG images to the ETC1 compression standard and decode ETC1 compressed images back to PNG.
`fastboot`
Flashes a device with platform and other system images. For flashing instructions, see [Factory Images for Nexus and Pixel Devices](https://developers.google.com/android/images).
[`logcat`](https://developer.android.com/studio/command-line/logcat)
Invoked by adb to view app and system logs.
## Android Emulator
Located in: `android_sdk/emulator/`
See [Android Emulator release notes](https://developer.android.com/studio/releases/emulator) for more information.
This package is required to use the Android Emulator. It includes the following:
`emulator`
A QEMU-based device-emulation tool that you can use to debug and test your applications in an actual Android run-time environment.
`mksdcard`
Helps you create a disk image that you can use with the emulator to simulate the presence of an external storage card, such as an SD card.
**Note:** Prior to revision 25.3.0, the emulator tools were included with the SDK Tools package.
## Jetifier
[Jetifier](https://developer.android.com/studio/command-line/jetifier) reads a library that uses Support Library classes and outputs an equivalent library that uses the newer AndroidX classes.
No recommendations at this time.
Try [signing in](https://developer.android.com/tools) to your Google account.
Content and code samples on this page are subject to the licenses described in the [Content License](https://developer.android.com/license). Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-11-19 UTC.
\[\[\["Easy to understand","easyToUnderstand","thumb-up"\],\["Solved my problem","solvedMyProblem","thumb-up"\],\["Other","otherUp","thumb-up"\]\],\[\["Missing the information I need","missingTheInformationINeed","thumb-down"\],\["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"\],\["Out of date","outOfDate","thumb-down"\],\["Samples / code issue","samplesCodeIssue","thumb-down"\],\["Other","otherDown","thumb-down"\]\],\["Last updated 2025-11-19 UTC."\],\[\],\[\]\] |
| Shard | 127 (laksa) |
| Root Hash | 18420266955115890527 |
| Unparsed URL | com,android!developer,/tools s443 |