Problem: failed to install *. APK on device *: timeout

Source: Internet
Author: User

Maybe the project is getting bigger (in fact, there are many pictures ^-^), and failed to install *. APK on device *: timeout will appear every time you debug and install it.
Now, sort out the problem for future reference.

Error: timeout occurs when the connection to the real machine is debugged for too long and does not respond.

According to many materials on the Internet: There are several solutions:

From simple to troublesome:

1. Set the timeout time of ddms in window-prensent...-Android. This is the most effective and concise.

2. Delete the APK in Android to ensure the speed. However, after a try, the real machine seems to be "smart" and there is also a timeout.

3. Cleaning the Project (Project-> clean). If it doesn't work, restart eclipse or android. It is depressing that it can be run for the first time after restart. The second time it starts to slow down, that is, the timeout occurs.

4. A method I have not tried on the Internet:

Don't use spaces in your directory names. If you have files that are in such a directory (e.g., stuff insideC: \ Program Files \), Copy them to another spot that does not have spaces.

Obviously, there should be no spaces in the directory to exclude them.

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.