Prompt error:more than one device and emulator when entering ADB shell

Source: Internet
Author: User

The first scenario: do use multiple devices or simulators
Workaround: (Specify a device or emulator to connect to)

1. Get the simulator/device list

   adb devices

2. Specify device to execute ADB shell

  adb -s devicename shell

For example:

adb -s emulator-5554 shell

In multi-device, executing the ADB command typically requires the device to be specified with the parameter-S. For example, uninstalling the package on emulator-5554 Com.soft.cameraadb -s emulator-5554 uninstall com.soft.camera

In the second case: there is a device or simulator (there is a number that is displayed because this device has been used two times with the command ADB devices will see this device in two ways: offline and device)
Workaround:
General approach: Enter ADB start-server in the command window to restart the Adb.exe service
If the above method is not possible, the ultimate method: Open the taskbar, select the "Process" tab, find the Adb.exe process, end it, restart the finished ok (or in the Command Window Input command adb kill-server)

Prompt error:more than one device and emulator when entering ADB shell

Related Article

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.