ANDROID:ADB error "More than one device and emulator"

Source: Internet
Author: User

Start the simulator debugging, when executing the ADB command, 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, the first thing to check is whether there are really multiple devices or simulators.
c:\users\gaojs>ADB devices
List of devices attached
emulator-5554 Device
4DFADCB86B00CF05 Device
The discovery is really multiple devices, then you need to specify the serial number of the device 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 check the status of offline;
That means that the ADB itself is the cause of the bug, you need to use the following methods to deal with the following:
c:\users\gaojs>adb kill-server
c:\users\gaojs>taskkill/f/im Adb.exe
The first command is to kill the ADB service, the second command is to kill the ADB process!
If the first one is useless, consider using the second command to try again!

ANDROID:ADB error "More than one device and emulator"

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.