Android Real-Computer debugging--The remote host forced the shutdown of an existing connection.

Source: Internet
Author: User
Tags delete key

When you used a real machine to debug a program, the following error occurred in Android Studio
[2016-11-12 10:37:36- devicemonitor] Adb connection Error: The remote host forced the shutdown of an existing connection. [2016-11-12 10:37:38-devicemonitor] Connection attempts:1

Find out why the problem occurred: this is caused by DDMS calling ADB. After a search, it was discovered that this is a limitation of the ADB in the Windows environment, which can also be said to be a bug. When the number of simultaneous processes running on the phone is greater than 64 o'clock, the ADB is thrown. The deeper reason is that the maximum number of handles supported by the Windows API WaitForMultipleObjects is maximum_wait_objects, or 64.

Solution:

Found the process is Adb.exe port is occupied, please open Task Manager (while holding down the Ctrl+alt+delete key), go to "process" option and click on the process to end the process

After that, reconnect is possible.

Android Real-Computer debugging--The remote host forced the shutdown of an existing connection.

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.