Error Code: error: more than one device/emulator

How to Fix "error: more than one device/emulator"

Target a specific Android device when multiple phones or emulators are connected simultaneously.

Common Symptoms

  • Commands fail when multiple physical devices or emulators are plugged in

Root Causes

  • ADB requires explicit device targeting via `-s <SERIAL>` or `-d` / `-e` qualifiers when 2+ devices are active

Proven Solutions

Solution: Specify Target Device with -s Flag

  1. Run `adb devices` to get the serial of your target phone (e.g. `RF8M90ABCDEF`)
  2. Prefix your commands with `-s <SERIAL>`: `adb -s RF8M90ABCDEF shell`
adb devices
adb -s <SERIAL> shell

Shortcuts: -d (only USB device) and -e (only emulator)

Use `-d` to target physical USB phone or `-e` to target emulator.

adb -d shell
adb -e shell