Android development error Solution

Source: Internet
Author: User

Today, we encountered the following error during debugging:

Launch error: failed to connect to remote VM. Connection timed out.

I did not find a solution after I checked it online, so I tried it and found that as long as you select your project in debug, right-click and select terminate and remove, that is, the end and remove options or selectTerminate (end) is also acceptableAnd click debug again! If you want to debug thisProgramYou can also click relaunch (with a picture at the end)

The specific reason seems to be that although the connection is disconnected, this project still occupies the port and connection, so an error is reported.

But after I click it once, this error will no longer occur. Even if I operate like before, it will not be reported.

Weird.


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.