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

徘徊边缘 提交于 2019-12-12 08:03:57

问题


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?


回答1:


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.




回答2:


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 .




回答3:


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.




回答4:


adb kill-server and adb star-server problem solved.

change time out WINDOW -> Preferences -> android -> DDMS -> increase the timeout value




回答5:


For me my phone didn't like the USB3.0 port. I moved it to a USB 2.0 port and everything worked fine.



来源:https://stackoverflow.com/questions/4552435/failed-to-install-apk-on-device-emulator-5554-timeout

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!