我正在使用maven android插件来构建我的项目并将它们部署到设备上。
使用mvn clean install android:undeploy android:deploy,我可以成功地部署到我的2.2中兴刀片:
[INFO] Found 1 devices connected with the Android Debug Bridge
[INFO] android.device parameter not set, using all attached devices
[INFO] Successfully uninstalled com.jameselsey.apps from P729J_SBM_ZTE_ZTE-BLADE
[INFO] Found 1 devices connected with the Android Debug Bridge
[INFO] android.device parameter not set, using all attached devices
[INFO] Successfully installed D:\development\james-projects\MyApp\target\myapp-0.5-SNAPSHOT.apk to P729J_SBM_ZTE_ZTE-BLADE然而,当我在2.3.3上插入我的三星GT-I9000时,这似乎不起作用,这是我得到的:
[INFO] Found 1 devices connected with the Android Debug Bridge
[INFO] android.device parameter not set, using all attached devices
[INFO] Successfully uninstalled com.jameselsey.apps from 333297C93FD200EC_samsung_GT-I9000
[INFO] Found 1 devices connected with the Android Debug Bridge
[INFO] android.device parameter not set, using all attached devices
01:36:59 E/Device: Error during Sync: timeout.导致超时的原因是什么?
发布于 2013-09-04 14:50:22
我在eclipse中遇到了这个问题,这是因为ADB连接超时。
默认值为5000ms,在将其更改为10000后得到了修复。
发布于 2015-02-14 09:43:35
实际上,@Capitain overflow提到的连接超时只是插件首先在设备上打开一个套接字。在此之后,安装过程有其自己的超时(以分钟为单位),该超时由一个环境变量控制(根据ddmlib:ADB_INSTALL_TIMEOUT默认为4分钟)
https://stackoverflow.com/questions/10720241
复制相似问题