Appium error

Error: Could not find a connected Android device

Appium's UiAutomator2 driver couldn't see any device or emulator through ADB when the session started.

Why this happens

How to fix it

  1. Confirm the device shows up with `adb devices` before starting the test, and fix ADB/USB debugging authorization if it doesn't
  2. For emulators, make sure the AVD is fully booted (not still on the splash screen) before launching the session
  3. Restart the ADB server if it's stuck: `adb kill-server && adb start-server`