当我试图在模拟器中运行应用程序时,它将第一次运行,从第二次开始它将失败,然后我将关闭avd,我将再次启动avd。 我改变了ADB连接超时两次,没有改变我重新启动eclispe然后也是同样的问题,这是第一次只运行应用程序..然后失败。
如何解决这个问题
这是错误
[2014-07-16 15:47:37 - Hydroponic] ------------------------------
[2014-07-16 15:47:37 - Hydroponic] Android Launch!
[2014-07-16 15:47:37 - Hydroponic] adb is running normally.
[2014-07-16 15:47:37 - Hydroponic] Performing com.tcs.ignite.hydroponic.ManualLogging activity launch
[2014-07-16 15:47:37 - Hydroponic] Uploading Hydroponic.apk onto device 'emulator-5554'
[2014-07-16 15:47:38 - Hydroponic] Launch error: timeout
[2014-07-16 15:48:27 - Hydroponic] Failed to install Hydroponic.apk on device 'emulator-5554': timeout
[2014-07-16 15:48:27 - Hydroponic] Launch failed on device: MyDevice
[2014-07-16 15:48:27 - Hydroponic] Starting activity com.tcs.ignite.hydroponic.ManualLogging on device emulator-5554
[2014-07-16 15:49:18 - Hydroponic] Launch error: timeout
[2014-07-16 15:53:39 - Hydroponic] ------------------------------
[2014-07-16 15:53:39 - Hydroponic] Android Launch!
[2014-07-16 15:53:39 - Hydroponic] adb is running normally.
[2014-07-16 15:53:39 - Hydroponic] Performing com.tcs.ignite.hydroponic.ManualLogging activity launch
[2014-07-16 15:53:39 - Hydroponic] Uploading Hydroponic.apk onto device 'emulator-5554'
[2014-07-16 15:54:30 - Hydroponic] Failed to install Hydroponic.apk on device 'emulator-5554': timeout
[2014-07-16 15:54:30 - Hydroponic] Launch failed on device: MyDevice
[2014-07-16 15:54:30 - Hydroponic] Starting activity com.tcs.ignite.hydroponic.ManualLogging on device emulator-5554
答案 0 :(得分:1)
尝试更改ADB连接超时。我认为默认为5000毫秒,您可以将其更改为10000毫秒以解决该问题。
如果你在Eclipse中,可以通过
来完成窗口 - >偏好 - > Android - > DDMS - > ADB连接超时(毫秒)
如果上述解决方案无效,请尝试以下方法:
使用taskmanager结束此过程adb.exe并重新启动模拟器
甚至尝试重新启动电脑