Failed to install *.apk on device *: timeout

本文介绍了在进行Android真机调试过程中遇到的Failed to install *.apk on device: timeout问题及解决方案。通过调整DDMS超时时间、清理项目、重新启动Eclipse或Android等方法,有效地解决了调试过程中的超时问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

经常出现Failed to install *.apk ondevice *: timeout

错误出现:连接真机调试的时候如果连接太久没响应就会出现timeout

根据网上众多资料:可分为这几个解决方法

方法由简单到麻烦:

1.在window-》prensent....-》android-》设置ddms的timeout时间。这种是就最有效、最简洁的。

2.delete android里面的 apk,保证速度。不过试过一次后,真机好像变“聪明了”,也出现timeout。

3.Cleaning the project(Project->Clean),不行就重启eclipse或者android,很郁闷的是,重启后运行第一次可以。第二次就开始变慢了,也就是出现timeout

4.网上一个我没试过的方法:

Don't use spaces in your directory names. If you have files thatare in such a directory (e.g., stuff inside ofC:\ProgramFiles\), copy them to another spot that does not havespaces.

很明显是说目录里面不要有空格,排除

来自:http://blog.sina.com.cn/s/blog_9456f8b30100x27p.html


aise LaunchUiAutomationError("server not ready", output_buffer) uiautomator2.exceptions.LaunchUiAutomationError: ('server not ready', '[server] INFO: [UiAutomator2Server] Starting Server\nSLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".\nSLF4J: Defaulting to no-operation (NOP) logger implementation\nSLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.\n[server] INFO: [UiAutomator2Server] Starting Server\nSLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".\nSLF4J: Defaulting to no-operation (NOP) logger implementation\nSLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.\n[server] INFO: clipboardManager inited\n[server] INFO: tmpdir is /data/local/tmp/u2\n[server] INFO: http server listening on *:9008\n[server] INFO: [UiAutomator2Server] Starting Server\nSLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".\nSLF4J: Defaulting to no-operation (NOP) logger implementation\nSLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.\n[server] INFO: clipboardManager inited\n[server] INFO: tmpdir is /data/local/tmp/u2\n[server] INFO: http server listening on *:9008\n[server] INFO: [UiAutomator2Server] Starting Server\nSLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".\nSLF4J: Defaulting to no-operation (NOP) logger implementation\nSLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.\n[server] INFO: clipboardManager inited\n[server] INFO: tmpdir is /data/local/tmp/u2\n[server] INFO: http server listening on *:9008\n[server] INFO: [UiAutomator2Server] Starting Server\nSLF4J: Failed to load class 这是报错信息
最新发布
08-16
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值