Android uses the ADB installation application to appear "more than one device and emulator wait for device"

Source: Internet
Author: User

Today, when writing an automated script, the update to the real-machine version before this was made, and it was not unplugged from the computer, and an AVD was opened in ADT.

So, free to write the script, trying to emulator an apk, in the cmd window, using: ADB devices to see, a real machine and a simulator, but, using the adb install APK, there appears as shown in the error:

In this case, it means that the current ADB command detects two machines, installs the APK, does not know which machine to install, so, then use the ADB install APK should indicate on which machine to install, the correct way is as follows:

Check the name (serial number) of all machines with ADB devices before executing the command:

Adb-s Virtual machine name install APK

can be installed successfully.

Android uses the ADB installation application to appear "more than one device and emulator wait for device"

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.