Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Failed to install apk on device 'emulator-5554': timeout

I am new to Android development. I tried to run LunarLander project (create new project based on sample) in this folder C:\Program Files\Android\android-sdk-windows\samples\android-9\LunarLander

But I got this error: Failed to install LunarLander.apk on device 'emulator-5554': timeout

But if I copied it out to C:\LunarLander, it runs fine. I guess there is something wrong with the path. How do I fix or troubleshoot this?

like image 510
HP. Avatar asked Dec 29 '10 08:12

HP.


3 Answers

In eclipse, you can increase the timeout. In Eclipse, Go to WINDOW-->Prefrences-->android-->DDMS>increase the timeout value. In my case it was 5000 & i incresed it to 10000 & it worked for me .

like image 134
Asteriskiiii Avatar answered Sep 25 '22 09:09

Asteriskiiii


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

like image 38
CommonsWare Avatar answered Sep 21 '22 09:09

CommonsWare


Close the emulator and launch the APP again. That would fix the issue. You might have kept the emulator open for quite some time without doing any activity.

Restarting the emulator fixed this issue for me.

like image 31
defau1t Avatar answered Sep 24 '22 09:09

defau1t