Failed to install *.apk on device 'emulator-5554': timeout
错误提示: Failed to install helloworld.apk on device 'emulator-5554': timeout 或者 the user data image is used
原因: 由于模拟器已经开启而没有关闭或者非法关闭引起的。 解决方法: 删除 C:\Documents and Settings\Administrator\.android\avd\对应版本.avd
或者
Failed to install *.apk on device *: timeout Launch canceled! 还有一种办法: 在window->preferences->Android->DDMS->ADB connection time out (ms): 将这个值设置的大一些,默认为5000,我设置成500000,然后就OK了。
我有一次试N种方法都解决不了,后来就是用这个办法解决的。
<!----> 1. Cleaning the project (Project->Clean)
|
<!--EndFragment-->
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】凌霞软件回馈社区,博客园 & 1Panel & Halo 联合会员上线
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】博客园社区专享云产品让利特惠,阿里云新客6.5折上折
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步