debug-run-android

Build and install Android debug apps on a running emulator with logcat crash detection.

Updated Oct 6, 2024
One-click install
npx skills add https://github.com/s-iwasaki-b/Compose-Multiplatform-Starter-Template --skill debug-run-android
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: debug-run-android
Source: https://github.com/s-iwasaki-b/Compose-Multiplatform-Starter-Template/tree/main/.claude/skills/debug-run-android
Command: npx skills add https://github.com/s-iwasaki-b/Compose-Multiplatform-Starter-Template --skill debug-run-android

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It removes the friction of manually building, installing, and launching an Android app on an emulator while also checking for build failures and startup crashes.

Core Features & Use Cases

  • Build and Install: Compiles the Android app and installs the debug build onto a running emulator.
  • Launch Verification: Starts the app’s main activity and watches for immediate runtime exceptions.
  • Error Reporting: Surfaces build task failures, dependency issues, compile errors, and crash stack traces in a structured format.
  • Use Case: Use it when you want a quick, repeatable check that a Compose Multiplatform Android target still builds and runs after code changes.

Quick Start

Ask the skill to build the Android app, install it on the active emulator, launch it, and report any build or runtime errors.

Frequently Asked Questions about debug-run-android

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

FAQPage Schema
How do I build and install an Android debug app on a running emulator?

To build and install an Android debug app, you need to compile the project using Gradle install tasks and deploy the output to an active emulator. This automates the build, installation, and launch process to verify the app runs correctly.

Why does my Compose Multiplatform Android target crash on startup?

A Compose Multiplatform Android target crash on startup is often caused by immediate runtime exceptions. Launching the app's main activity while monitoring logcat captures startup crashes and surfaces the stack traces for debugging.

Can I use adb to verify my Android application launched without runtime errors?

Yes, you can use adb to verify an Android application launched without runtime errors. By starting the main activity via adb and monitoring logcat, you can detect immediate runtime exceptions and report structured error logs.

Does this debugging workflow support Compose Multiplatform Android targets?

This debugging workflow explicitly supports Compose Multiplatform Android targets. It applies Gradle install tasks and adb-based device control to build, install, and verify the debug build on an emulator to check for runtime errors.

What is the best way to surface Gradle build failures and compile errors for an Android app?

The best way to surface Gradle build failures and compile errors is to run an automated build and install sequence. This captures dependency issues, build task failures, and compile errors in a structured format for quick resolution.

How do I monitor logcat for runtime errors after launching my Android app?

To monitor logcat for runtime errors after launching your Android app, start the main activity on the emulator and capture the logcat output. This surfaces immediate runtime exceptions and crash stack traces directly.