Skip to content
Back to skills

Android Build Deploy

ASecurity

Build and deploy Android app to emulator or device. Use when testing Android changes, debugging on device, or running the app after code changes. Handles Gradle builds, APK installation, and app launching.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 27, 2026
toolsjavakotlinshellbashtestingdebuggingapi

Works with

  • api

Security analysis

A100/100

Scanned September 27, 2026

npx -y skills add David-Li0406/meta-skill-evloving --skill android-build-deploy --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Android Build Deploy?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Android Build Deploy
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/david-li0406-android-build-deploy/badge)](https://www.skillsdirectory.com/skills/david-li0406-android-build-deploy)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: android-build-deploy
description: Build and deploy Android app to emulator or device. Use when testing Android changes, debugging on device, or running the app after code changes. Handles Gradle builds, APK installation, and app launching.
allowed-tools: Read, Bash
---

# Android Build & Deploy

## Purpose
Quickly build the Android app and deploy to connected device or emulator for testing.

## Prerequisites Check

Before building, verify environment:

```bash
# Check for connected devices/emulators
~/Library/Android/sdk/platform-tools/adb devices

# If no devices, start emulator
~/Library/Android/sdk/emulator/emulator -list-avds
~/Library/Android/sdk/emulator/emulator -avd <avd_name> &
```

## Build Commands

### Quick Compile (Check for Errors)
```bash
cd apps/android/construction-android
./gradlew :app:compileDebugKotlin
```

### Full Debug Build
```bash
cd apps/android/construction-android
./gradlew assembleDebug
```

### Build & Install in One Step
```bash
cd apps/android/construction-android
./gradlew installDebug
```

## Deploy to Device

### Install APK
```bash
~/Library/Android/sdk/platform-tools/adb install -r app/build/outputs/apk/debug/app-debug.apk
```

### Launch App
```bash
~/Library/Android/sdk/platform-tools/adb shell am start -n com.constructionpro.app/.MainActivity
```

### Combined: Build, Install, Launch
```bash
cd apps/android/construction-android && \
./gradlew installDebug && \
~/Library/Android/sdk/platform-tools/adb shell am start -n com.constructionpro.app/.MainActivity
```

## Debugging

### View Logs (Filtered to App)
```bash
~/Library/Android/sdk/platform-tools/adb logcat -s "ConstructionPro"
```

### View All Recent Logs
```bash
~/Library/Android/sdk/platform-tools/adb logcat -d -t 100
```

### Clear Logs Before Testing
```bash
~/Library/Android/sdk/platform-tools/adb logcat -c
```

## Common Issues

### Device Not Found
```bash
# Restart ADB server
~/Library/Android/sdk/platform-tools/adb kill-server
~/Library/Android/sdk/platform-tools/adb start-server
~/Library/Android/sdk/platform-tools/adb devices
```

### Build Cache Issues
```bash
cd apps/android/construction-android
./gradlew clean
./gradlew assembleDebug
```

### Kotlin Compile Errors
Check specific file:
```bash
./gradlew :app:compileDebugKotlin 2>&1 | grep -A 5 "error:"
```

## Quick Reference

| Task | Command |
|------|---------|
| Compile check | `./gradlew :app:compileDebugKotlin` |
| Full build | `./gradlew assembleDebug` |
| Build + Install | `./gradlew installDebug` |
| Launch app | `adb shell am start -n com.constructionpro.app/.MainActivity` |
| View logs | `adb logcat -d -t 50` |
| List devices | `adb devices` |

## Project Paths

- **Root**: `apps/android/construction-android/`
- **APK Output**: `app/build/outputs/apk/debug/app-debug.apk`
- **Source**: `app/src/main/java/com/constructionpro/app/`
- **Models**: `app/src/main/java/com/constructionpro/app/data/model/`
- **Screens**: `app/src/main/java/com/constructionpro/app/ui/screens/`
- **API Service**: `app/src/main/java/com/constructionpro/app/data/ApiService.kt`

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…