본문으로 건너뛰기
Skillpedia
모바일 앱10k · #11915

android-cli

하는 일

이 스킬은 android 명령줄 도구를 설치하고 사용하는 방법을 안내합니다. Android 프로젝트 생성, 기기에 앱 설치, 에뮬레이터 관리, SDK 구성 요소 관리를 돕습니다. 터미널에서 작업하는 Android 개발자를 위한 스킬입니다.

사용하는 경우

  • ✓명령줄에서 새 Android 프로젝트를 만들고 싶을 때.
  • ✓기기나 에뮬레이터에 APK를 설치하고 실행해야 할 때.
  • ✓터미널에서 Android SDK 패키지를 설치하거나 업데이트하고 싶을 때.

스킬 링크

https://github.com/android/skills/blob/main/devtools/android-cli/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/android/skills/blob/main/devtools/android-cli/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“android 명령줄 도구를 설치하고, 이 프로젝트에 필요한 SDK 패키지를 설정해 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

이 스킬은 먼저 android 도구가 시스템 경로에 있는지 확인하고, 없으면 설치합니다. 그다음 SDK 관리, 프로젝트 생성, 기기 작업에 필요한 명령을 알려 줍니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

This skill provides instructions for using the android CLI tool. The tool includes various commands for creating projects, running applications, interacting with devices, and managing the CLI environment.

Installation

If the android tool is not in the path, install it. To install run the following command:

SDK management

To manage the installation of Android SDKs and tools, use the sdk command. For example:

  • android sdk install <package>[@<version>]...: Install specific packages. Multiple packages can be specified, separated by spaces. <version> defaults to latest. For example: android sdk install platforms/android-30@2 platforms/android-34
  • android sdk update [<pkg-name>]: Update a specific package or all packages to the latest version.
  • android sdk remove <pkg-name>: Remove a package from the local SDK.
  • android sdk list --all: List installed and available SDK packages.

Project creation

Create projects from templates using the create command.

For example: android create empty-activity --name="My App" --output=./my-app

Interacting with Android devices

Use the android layout command to inspect the UI layout of an Android application in JSON format. Use the android screen command to visually inspect the UI and obtain bounding coordinates for visual regions. android layout dumps the UI as JSON. android screen capture -o <file path> saves a PNG. Both auto-select the device when only one is connected; with more than one, pass --device=<serial> (use adb devices to list serials).

UI Dump

android layout returns a JSON tree of the UI elements on screen.

Each JSON object represents a UI element in the Android app. The following properties may be present:

  • text - any literal text the element contains
  • resource-id - the Android resource id used to refer to the element
  • content-desc - a description of a UI element for use by accessibility tools
  • interactions - the set of user interactions the element supports. May contain one or more of: CHECKABLE, CLICKABLE, FOCUSABLE, SCROLLABLE, LONG-CLICKABLE, PASSWORD
  • state - the set of states the element is in. May contain one or more of CHECKED, FOCUSED, SELECTED
  • bounds - the screen coordinates of the bounding rectangle of the element, in the format [min X,min Y][max X, max Y]
  • center - the screen coordinates of the center of the element, in the format [x,y]
  • off-screen - if true, the element is in the UI hierarchy but not within the bounds of the screen; it may require scrolling to view.
  • hidden - if true, the element is in the UI hierarchy but not visible or interactive on screen.

Use layout as a primary means of examining an Android app.

By default, layout only returns elements that have content or are interactive:

  • elements with non-empty text or content-desc properties
  • elements with non-empty interactions or state To return all elements, use the --full flag

If layout continues to fail, use android screen capture --annotate to inspect the app.

Screenshot

android screen capture -o <file path> (or --output=<file path>) saves a PNG of the current device screen to <file path>.

Use screen capture as a secondary means of examining an Android app Examples:

  • Understanding the content of an on-screen image
  • Looking at a WebView (web content does not always appear in the ui dump)
  • Trying to find a UI element by its visual appearance

IMPORTANT : Always VISUALLY examine the PNG image returned from any android screen command BEFORE doing anything else.

Annotated Screenshot

android screen capture --annotate -o <file path> (or -a -o <file path>) android screen resolve --screenshot <path> --string <string>

The --annotate command adds numerical labels and bounding boxes around UI elements. Use this command to locate UI elements that cannot be located in the layout output.

To refer to these labels in i

자주 묻는 질문

어떤 시스템에 설치할 수 있나요?

Linux, Mac, Windows용 설치 방법이 나와 있으며, 해당되는 경우 Intel과 ARM 프로세서 버전도 제공합니다.

에뮬레이터도 관리할 수 있나요?

네. 이 도구로 스크린샷 촬영과 화면 확인을 포함해 Android 가상 기기를 관리할 수 있습니다.

SDK 패키지는 어떻게 업데이트하나요?

android sdk update 명령을 사용하면 패키지 하나 또는 전체를 최신 버전으로 업데이트할 수 있습니다.

상세 정보

작성자의 원본 설명

Provides instructions for installing and using the `android` CLI. The `android` command-line tool is a critical tool for Android development and helps you create new Android projects, install APKs onto devices and emulators and launch and run apps on them, manage and interact with Android virtual devices (including screenshots and UI inspection), manage Android SDK components, look up official Android documentation, and discover and install official Android skills.

repo: android/skills

인기도

GitHub 스타
10k
순위
#11915
라이선스
Apache-2.0
업데이트
2026. 10. 29.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬