environment-setup-uiautomator2
Installation
SKILL.md
appium-uiautomator2-environment-setup
Goal
Prepare Appium UiAutomator2 by validating Node/Appium, Android/Java, doctor, and smoke checks until 0 required fixes needed.
Decision Logic
- If host OS is not macOS, Linux, or Windows: stop.
- If Node.js misses
appium/appium-uiautomator2-driverengines: install active LTS. - If Appium CLI is not installed: install
appiumglobally. - Use global npm/Appium (
npm install -g appium,appium ...) unless the user asks fornpx. - If
appiumresolves to an older Node-managed path than the activenode/npmenvironment, reinstall Appium globally under the active Node runtime before continuing. - If Android SDK prerequisites are missing (
adb, emulator, SDK packages): runenvironment-setup-android. - If requested, run
environment-setup-ffmpegorenvironment-setup-bundletoolbefore final validation. - Report device/emulator inventory.
- If the
uiautomator2driver is not installed: install it via Appium CLI. - If install returns "already installed", ignore the error and continue (or run driver update).
- If
appium driver doctor uiautomator2reports missing dependencies: resolve each missing item and re-run doctor.