Back to list
Skrufy

android-build-deploy

by Skrufy

0🍴 0📅 Jan 13, 2026

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:

# 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)

cd apps/android/construction-android
./gradlew :app:compileDebugKotlin

Full Debug Build

cd apps/android/construction-android
./gradlew assembleDebug

Build & Install in One Step

cd apps/android/construction-android
./gradlew installDebug

Deploy to Device

Install APK

~/Library/Android/sdk/platform-tools/adb install -r app/build/outputs/apk/debug/app-debug.apk

Launch App

~/Library/Android/sdk/platform-tools/adb shell am start -n com.constructionpro.app/.MainActivity

Combined: Build, Install, Launch

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)

~/Library/Android/sdk/platform-tools/adb logcat -s "ConstructionPro"

View All Recent Logs

~/Library/Android/sdk/platform-tools/adb logcat -d -t 100

Clear Logs Before Testing

~/Library/Android/sdk/platform-tools/adb logcat -c

Common Issues

Device Not Found

# 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

cd apps/android/construction-android
./gradlew clean
./gradlew assembleDebug

Kotlin Compile Errors

Check specific file:

./gradlew :app:compileDebugKotlin 2>&1 | grep -A 5 "error:"

Quick Reference

TaskCommand
Compile check./gradlew :app:compileDebugKotlin
Full build./gradlew assembleDebug
Build + Install./gradlew installDebug
Launch appadb shell am start -n com.constructionpro.app/.MainActivity
View logsadb logcat -d -t 50
List devicesadb 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

Score

Total Score

50/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

Reviews

💬

Reviews coming soon