Loading...
Loading...
연결된 Android 디바이스 또는 에뮬레이터에 앱을 빌드하고 설치합니다. 앱 설치, 디바이스 설치, APK 설치 요청 시 사용됩니다.
npx skill4agent add ingpdw/pdw-android-dev-tool install-appadb devices# Debug 빌드 후 설치
./gradlew installDebug
# Release 빌드 후 설치
./gradlew installRelease
# 특정 디바이스에 설치 (여러 디바이스 연결 시)
./gradlew installDebug -Pandroid.injected.build.api=<device_serial># 단일 디바이스
adb install app/build/outputs/apk/debug/app-debug.apk
# 특정 디바이스 지정
adb -s <device_serial> install app/build/outputs/apk/debug/app-debug.apk
# 기존 앱 덮어쓰기 (데이터 유지)
adb install -r app-debug.apk
# 다운그레이드 설치
adb install -r -d app-debug.apkadb devices -l# 사용 가능한 AVD 목록
emulator -list-avds
# 에뮬레이터 실행
emulator -avd <avd_name># 디바이스 IP로 연결 (Android 11+)
adb pair <ip>:<port>
adb connect <ip>:<port># 메인 액티비티 실행
adb shell am start -n <package_name>/<activity_name>
# 예시
adb shell am start -n com.example.app/.MainActivityadb kill-server && adb start-server| 에러 | 해결 방법 |
|---|---|
| INSTALL_FAILED_ALREADY_EXISTS | |
| INSTALL_FAILED_VERSION_DOWNGRADE | |
| INSTALL_FAILED_INSUFFICIENT_STORAGE | 디바이스 저장공간 확보 |
| INSTALL_FAILED_UPDATE_INCOMPATIBLE | 기존 앱 삭제 후 재설치 |