When I connected to the phone to charge, I started the emulator debugging and executed ADB instruction, and reported an error.
C:\Users\gaojs> adb shell
error: more than one device and emulator
C:\Users\gaojs> adb install e:\good.apk
error: more than one device and emulator
In this case, first check to see if there are actually multiple devices or simulators.
C:\Users\gaojs> Adb devices
List of devices attached
emulator-5554 device
4dfadcb86b00cf05 device
you can find out that there are multiple devices, so you need to specify the device serial number for the adb command.
C:\Users\gaojs> Adb -s emulator-5554 shell
as shown above, add the -s parameter to the command! If there is actually only one device or simulator, and we have offline status;
, which means that ADB has a BUG, needs to be handled in the following way:
C:\Users\gaojs>
adb kill-server
C:\Users\gaojs>
Taskkill /f /im adb. Exe
the first command is a service to kill adb and the second command is a process to kill adb!
if the first command doesn’t work, consider using the second command to try again!
C:\Users\gaojs> adb shell
error: more than one device and emulator
C:\Users\gaojs> adb install e:\good.apk
error: more than one device and emulator
In this case, first check to see if there are actually multiple devices or simulators.
C:\Users\gaojs> Adb devices
List of devices attached
emulator-5554 device
4dfadcb86b00cf05 device
you can find out that there are multiple devices, so you need to specify the device serial number for the adb command.
C:\Users\gaojs> Adb -s emulator-5554 shell
as shown above, add the -s parameter to the command! If there is actually only one device or simulator, and we have offline status;
, which means that ADB has a BUG, needs to be handled in the following way:
C:\Users\gaojs>
adb kill-server
C:\Users\gaojs>
Taskkill /f /im adb. Exe
the first command is a service to kill adb and the second command is a process to kill adb!
if the first command doesn’t work, consider using the second command to try again!
Read More:
- Adb error: more than one device/emulator error handling
- adb shell error: device offline [How to Solve]
- How to Fix adb_server_notify: ADB server connection failed
- Error: ADB prompts device unauthorized
- The ADB server port is changed to 10001, and appium cannot connect to the device
- [Solved] adb shell error: error: device unauthorized
- An error is reported when starting the Android emulator: Emulator: audio: Failed to create voice `goldfish_audio_in’
- Android ADB command adb devices error: protocol fault (no status)
- On the error report after the command of ADB shell error:device not A solution of found
- How to Solve Error: The emulator process for AVD was killed.
- An error is reported after Android studio creates a new virtual machine. Emulator: emulator: error: unknown AVD name
- Error while waiting for device: Time out after 300seconds waiting for emulator to come online
- [Solved] adb shell error: no devices/emulators found
- How to Fix LDPlayer4 Proxy Setting Not Work Issue
- Android error: ADB port is occupied( adb.exe ,start-server’ failed — run manually if necessary)
- After adb is connected to an android phone, remount failed: operation not permitted when adb remount is a roundabout solution
- com.android.ddmlib.AdbCommandRejectedException: device offline Error while Installing APK (How to Fix)
- Solve the problem that the connection between ADB and nocturnal God cannot be solved
- Ubuntu cannot access USB device, failed to create a proxy device for the USB device
- emulator: ERROR: x86 emulation currently requires hardware acceleration! Abnormal problem solved