Android wear开发真机调试报: Android error: Failed to install *.apk on device *: timeout

调试时,运行工程则报:Android error: Failed to install *.apk on device *: timeout


原因很简单,因为android wear开发调试时,app装到智能手表上的速度比较慢,比较耗时。极大可能是你的eclipse中DDMS中设置的timeout满足不了app的安装时长,故出现该错误。


解决方法:

1)Try changing the ADB connection timeout. Default if 5000 change it to 10000ms or so.( 将ADB连接超时从默认5秒改为10秒甚至更大。)

Window -> Preferences -> Android -> DDMS -> ADB Connection Timeout (ms)



猜你喜欢

转载自blog.csdn.net/kern_/article/details/51207424