Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error during Sync: timeout when deploying apk to device using maven

I'm using the maven android plugin to build my projects and deploy them to a device.

Using mvn clean install android:undeploy android:deploy I can successfully deploy to my 2.2 ZTE blade :

[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

However this doesn't seem to work when I plug in my Samsung GT-I9000 on 2.3.3, this is what I get :

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

What would be causing the timeout?

like image 316
Jimmy Avatar asked May 23 '12 12:05

Jimmy


1 Answers

I faced this problem in eclipse and it was because of ADB connection timeout.

default was 5000 ms and it got fixed after changing that to 10000.

like image 160
Captain overflow Avatar answered Oct 18 '22 23:10

Captain overflow