Android 错误:无法在设备上安装 *.apk *:超时 [英] Android error: Failed to install *.apk on device *: timeout

查看:28
本文介绍了Android 错误:无法在设备上安装 *.apk *:超时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不时收到此错误,但不知道是什么原因造成的:
尝试在真实设备(在我的情况下为 Galaxy Samsung S)上运行/调试 Android 应用程序时,我在控制台中收到以下错误:

I'm getting this error from time to time and don't know what causing this:
When trying to run/debug an Android app on a real device (Galaxy Samsung S in my case) I'm getting the following error in the Console:

无法在设备 * 上安装 *.apk:

Failed to install *.apk on device *:

超时启动取消!

这就是控制台告诉我的全部内容.LogCat 不提供任何信息.Eclipse 问题视图未显示任何问题.

This is all the Console is telling me. LogCat doesn't provide any information. Eclipse Problems view is not showing any issues.

我尝试了以下步骤但没有成功:
1.清理项目(Project->Clean)
2. 重启设备,Eclipse,笔记本,以上都...
3.根据Failed 将项目移动到没有空格的位置在设备emulator-5554"上安装apk:超时

I tried the following steps with no success:
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

该应用过去曾在该设备上调试过多次(该应用已在 Market 上发布),但此问题时常发生,而且非常令人沮丧...

The app has been debugged in the past on that device many times (app is live on Market), but this problem happens every so often, and is VERY FRUSTRATING...

任何帮助将不胜感激!谢谢.

Any help would be greatly appreciated! Thanks.

推荐答案

尝试更改 ADB 连接超时.我认为它默认为 5000 毫秒,我将我的改为 10000 毫秒 以解决该问题.

Try changing the ADB connection timeout. I think it defaults that to 5000ms and I changed mine to 10000ms to get rid of that problem.

如果您在 Eclipse 中,则可以通过执行此操作

If you are in Eclipse, you can do this by going through

窗口 -> 首选项 -> Android -> DDMS -> ADB 连接超时(毫秒)

这篇关于Android 错误:无法在设备上安装 *.apk *:超时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆