问题:Failed to install on device 'emulator-5554': timeout

解决办法一:每重新运行一次都会出现,可能是eclipse和模拟

器太慢了。eclipse -> window -> Preferences -> Android ->

DDMS -> ADB connection time out(ms).把这个时间设置的长一些,默认是5秒,

我改成20秒就ok了。这样就不用每次重启模拟器了~


解决办法二:错误提示:
Failed to install helloworld.apk on device 'emulator-5554': timeout
或者
the user data image is used

原因:
由于模拟器已经开启而没有关闭或者非法关闭引起的。
解决方法:
删除 C:\Documents and Settings\Administrator\.android\avd\对应版本.avd
下所有以.lock结尾的文件夹。
解决办法三:
<!---->
1. Cleaning the project (Project->Clean)
2. Restarting device, Eclipse, laptop, all of the above...
3. Moving the project to a location without spaces, according to Failed to install apk on device 'emulator-5554': timeout <


<!--EndFragment-->


我是用办法二解决的
Logo

为开发者提供学习成长、分享交流、生态实践、资源工具等服务,帮助开发者快速成长。

更多推荐