The first scenario: do use multiple devices or simulators
Workaround: (Specify a device or emulator to connect to)
1. Get the simulator/device list
2. Specify device to execute ADB 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 are many because this device has been used two times. ADB devices will see this device in two different ways: offline and device) Workaround: General approach: enter ADB in the command window Start-server Restart the Adb.exe service if the above method is not possible, the ultimate method: Open the taskbar, select the "Processes" tab, find the Adb.exe process, end it, restart the finished ok (or in the Command window, enter the command ADB Kill-server)
Reprinted from: http://blog.sina.com.cn/s/blog_7ffb8dd50100wvrb.html
Prompt error:more than one device and emulator
when entering adb shell