android-cli

Orchestrates Android project creation, SDK management, device interaction, and testing via the android CLI.

Updated Apr 21, 2026
One-click install
npx skills add https://github.com/Zeyad-37/tech-agency --skill android-cli-zeyad-37
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: android-cli
Source: https://github.com/Zeyad-37/tech-agency/tree/main/.claude/skills/android-cli
Command: npx skills add https://github.com/Zeyad-37/tech-agency --skill android-cli-zeyad-37

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Android development involves many fragmented command-line tasks: installing SDK packages, creating projects from templates, deploying APKs to devices, managing emulators, capturing screenshots, and inspecting UI layouts. This Skill consolidates all of these operations into guided usage of the android command-line tool, so you can perform them through natural language requests. ## Core Features & Use Cases - SDK and Environment Management: Install, update, list, and remove Android SDK packages, and diagnose environment details like SDK location with android sdk and android info. - Project Creation and Deployment: Scaffold new apps from templates with android create and deploy APKs to connected devices or emulators with android run. - Device Interaction and UI Inspection: Dump UI layout trees as JSON, capture and annotate screenshots, and send tap/swipe input via adb for automated device control. - Journey Testing and Docs Search: Execute XML-defined user journey tests against a running app and search the Android Knowledge Base for up-to-date API guidance. - Use Case: Ask the agent to create a new empty-activity project, install the required SDK platform, launch an emulator, deploy the app, and verify the home screen renders correctly — all in one session. ## Quick Start Use the android-cli skill to create a new Android project named My App, install the required SDK platform, and run it on an emulator.

Frequently Asked Questions about android-cli

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

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

Use the android create command with a template name, for example: android create empty-activity --name="My App" --output=./my-app. You can list all available templates with android create --list and set a minimum SDK level with the --minSdk flag.

How do I install Android SDK packages from the terminal?▼

Use android sdk install followed by package names, such as android sdk install platforms/android-34. You can pin versions with @<version>, list available packages with android sdk list --all, and update packages with android sdk update.

How can I inspect an Android app's UI layout without a screenshot?▼

Run android layout to get the UI hierarchy as a JSON tree with element properties like text, resourceId, bounds, and interactions. Use android layout --diff to see only elements that changed since the last call, which keeps output small.

Does the android CLI work on macOS and Windows?▼

Yes, install scripts are provided for Linux, macOS (both ARM and Intel), and Windows. Each platform has a dedicated install script downloaded from dl.google.com that places the android tool on your path.

Why does android layout fail to return the UI tree?▼

The layout command can fail when the app displays a WebView or an active animation. In those cases, use android screen capture --annotate to get a labeled screenshot instead, then resolve element coordinates with android screen resolve.

What is a journey test in Android app testing?▼

A journey is an XML-specified test consisting of sequential action elements describing UI interactions and verifications. Each action is executed exactly as written against the running app, and the journey fails if any action fails or the app crashes.