Skip to main content

android-native

Build and run the Android app on an emulator or physical device. Use when the user asks to build, compile, run, launch, or deploy the Android app, or mentions the APK, Gradle, emulator, device, or native-run, even if they don't explicitly say "android-native".

소스 정보

저장소
BuilderIO/builder-agent-skills
최근 소스 활동
2026년 5월 6일 15:58
감지된 SKILL.md 언어
영어
스타
16
포크
3

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
android-native
description
Build and run the Android app on an emulator or physical device. Use when the user asks to build, compile, run, launch, or deploy the Android app, or mentions the APK, Gradle, emulator, device, or native-run, even if they don't explicitly say "android-native".
# Android Native ## Build Run `./gradlew assembleDebug` to build the debug APK. ## Running on Emulator or Connected Device Use `npx native-run` to run the app on an emulator or a physically connected device. Call `npx native-run android --list` to identify available targets (both emulators and connected devices will appear). If there is more than one option, ask the user which one to use. Example: ```bash ./gradlew assembleDebug && npx native-run android --app app/build/outputs/apk/debug/app-debug.apk --target Pixel_10_Pro ``` ## Running on a Physical Device Ensure USB debugging is enabled on the device (Settings → Developer Options → USB Debugging) and the device is connected via USB. Verify it is detected with: ```bash adb devices ``` Then build and deploy: ```bash ./gradlew assembleDebug && adb install app/build/outputs/apk/debug/app-debug.apk ``` Or use `native-run` if the device appears in `npx native-run android --list`: ```bash ./gradlew assembleDebug && npx native-run android --app app/build/outputs/apk/debug/app-debug.apk --target <DeviceID> ``` ## Gotchas - If `adb devices` shows the device as `unauthorized`, check the device screen and accept the USB debugging prompt. - If the device is not listed at all, try a different USB cable or port, and confirm USB debugging is enabled. - Always run `npx native-run android --list` or `adb devices` first — do not guess device IDs.
GitHub에서 보기