android-cli

Installs and operates the android CLI for project creation, device interaction, and SDK management.

2|Updated Jun 21, 2026
One-click install
npx skills add https://github.com/IsKenKenYa/skills --skill android-cli-iskenkenya
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: android-cli
Source: https://github.com/IsKenKenYa/skills/tree/main/skills/android/devtools/android-cli
Command: npx skills add https://github.com/IsKenKenYa/skills --skill android-cli-iskenkenya

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Setting up and driving Android development workflows from the command line is fragmented across many tools. This Skill teaches an agent how to install and use the official android CLI to create projects, run apps, manage SDKs and emulators, inspect UIs, and search official Android documentation from one place. ## Core Features & Use Cases - Project & SDK Management: Create projects from templates, install/update/remove SDK packages, and manage Android Virtual Devices (AVDs). - Device Interaction & Testing: Inspect UI layouts as JSON, capture and annotate screenshots, send input via adb, and evaluate XML-defined journey tests step by step. - Documentation Search: Query the official Android knowledge base with android docs for up-to-date API guidance, migration guides, and best practices. - Use Case: Ask the agent to create a new empty-activity project, launch an emulator, run the app, capture a screenshot, and verify the home screen appears. ## Quick Start Install the android CLI and create a new empty-activity project named My App, then run it on an emulator and capture a screenshot of the result.

Frequently Asked Questions about android-cli

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I install the android CLI tool?

Run the platform-specific install script from dl.google.com/android/cli using curl: linux_x86_64, darwin_arm64, darwin_x86_64, or windows_x86_64. After installation, use `android init` to set up configurations, directories, and default skills.

How do I create a new Android project from the command line?

Use `android create <template-name>` with options like --name, --output, --minSdk, --applicationId, and --namespace. For example, `android create empty-activity --name="My App" --output=./my-app` scaffolds a project from the empty-activity template.

How do I inspect the UI of a running Android app?

Use `android layout` to get a JSON tree of UI elements with text, resourceId, bounds, and interactions, or `android screen capture` to save a PNG screenshot. The --annotate flag adds labeled bounding boxes, and `screen resolve` converts labels to tap coordinates.

Can the android CLI manage emulators and SDK packages?

Yes. `android emulator` creates, starts, stops, lists, and removes Android Virtual Devices, while `android sdk` installs, updates, removes, and lists SDK packages such as specific platform versions.

What is a journey test and how is it evaluated?

A journey is an XML file listing sequential action steps that test app behavior. Each action is executed exactly as written using layout inspection and adb input commands, and results are summarized in a markdown report marking each action as passed or failed.

Why does android layout fail to return UI elements?

Layout extraction can fail when the app displays a WebView or an active animation. In those cases, use `android screen capture --annotate` to visually inspect the screen, or navigate away and retry the layout command.