Android的错误:对设备*安装* .apk文件失败:超时错误、文件、设备、Android

2023-09-11 10:54:52 作者:xx追不上你啦

我得到这个错误不时,不知道是什么造成这样的: 当试图(对我来说三星的Galaxy S)运行/调试真实设备上的Andr​​oid应用程序,我凑了控制台中出现以下错误:

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.清洗项目(项目 - >清洁) 2.重新启动设备时,Eclipse,笔记本电脑,上述所有... 3.移动项目没有空格的位置,根据Failed安装APK设备'模拟器-5554:超时

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

该应用程序已调试在该设备很多时候(应用程序是活的市场)的过去,但这种问题发生,每隔一段时间,并且是非常令人沮丧...

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...

任何帮助将是很大的AP preciated!谢谢你。

Any help would be greatly appreciated! Thanks.

推荐答案

试着改变ADB连接超时。我认为它的默认值,为 5000毫秒,然后我改变了我的为 10000ms 以摆脱这个问题的。

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

窗口 - > preferences - > Android的 - > DDMS - > ADB连接超时(毫秒)