Executing the adb command gives an error: error: more than one device/emulator solution

Executing the adb command gives an error: error: more than one device/emulator solution

During the testing process of Android devices, some small errors may be encountered when executing adb commands. If an error is reported: error: more than one device/emulator, it is because we have multiple devices connected to the computer. The solution is very simple. We only need to specify the execution device. After connecting the Android device, enter the terminal input:

adb -s 设备序列号 shell ps 21190

If the device serial number is unclear, you can enter:

adb devices

To obtain, the device serial number is in front of devices, such as xxxxxx devices;

During the adb debugging process, if there are other problems, we can also try to restart the adb service:

adb kill-server
adb start-srever

Or upgrade and update the adb version:

sudo apt-get install android-tools-adb

Restart the Android machine:

adb reboot

Guess you like

Origin blog.csdn.net/weixin_44996886/article/details/130288645