16

I try my application run on eclipse but i found these errors. which is faced first time so would you please give me any ideas for these error. i am currently using Nexus mobile.

  [2011-08-04 15:59:09 - App] Android Launch!
  [2011-08-04 15:59:09 - App] adb is running normally.
  [2011-08-04 15:59:09 - App] Performing  com.horror.android.AppActivity     activity launch
  [2011-08-04 15:59:09 - App] Automatic Target Mode: using device 'HT9CRP800333'
  [2011-08-04 15:59:09 - App] Uploading Test.apk onto device 'HT9CRP800333'
  [2011-08-04 15:59:09 - App] Failed to install Test.apk on device 'HT9CRP800333': Unable to open sync connection!
  [2011-08-04 15:59:09 - App] java.io.IOException: Unable to open sync connection!
  [2011-08-04 15:59:09 - App] Launch canceled!

Why i am getting java.io.IOException: Unable to open sync connection! . Thanks in Advance.

Horrorgoogle
  • 7,858
  • 11
  • 48
  • 81
  • 1
    if you want more solution about this problem clich this link: http://stackoverflow.com/questions/3912548/android-adb-unable-to-open-sync-connection – Horrorgoogle Dec 23 '11 at 18:12

3 Answers3

49

get into Settings->Development->, and try disabling 'USB debugging' and enabling the same

Prakhs
  • 579
  • 1
  • 3
  • 8
  • 1
    this works well - is faster than rebooting! – benpage Nov 24 '11 at 22:42
  • Seems to be really the best solution. – fyr Feb 18 '12 at 14:22
  • [There's a nifty app that does this.](https://play.google.com/store/apps/details?id=com.pixplicity.adb) Unfortunately it requires root, but it's especially handy on my SGS2 since I have to unplug the cable, plug it in again, close the USB mount window and head through the menu a second time. – Paul Lammertsma Jul 13 '12 at 13:54
28

No it is not about your code. Try to plug usb out and than plag it in again. If it is not help try to reboot you device. Usually it works for me in such cases.

Maxim
  • 2,996
  • 17
  • 19
4

From Your Computer:

Try restarting ADB:

adb kill-server
adb start-server

For Linux(I have to do this on Ubuntu):

sudo -i (for root)
adb kill-server
adb start-server

Script I made in my '.bashrc':

alias fixadb="sudo sh -c '/path/to/adb kill-server'; sudo sh -c '/path/to/adb start-server';"

For Windows:

Ctrl + Alt + Del - Open Task Manager
Kill adb.exe
Right-click on adb.exe, Run as Administrator 

USB Ports:

Try switching USB ports, this usually helps me every once in a while.

From your Phone:

Android SDK < 11:

Settings > Development > Try disabling and re-enabling 'USB debugging'

Android SDK > 11:

Settings > Developer Options > Try disabling and re-enabling 'Android debugging'

Try restarting your phone

Jared Burrows
  • 54,294
  • 25
  • 151
  • 185