Android adb “Unable to open sync connection!”

前端 未结 18 2177
小蘑菇
小蘑菇 2020-12-07 09:21

I can run and debug my Android app on my phone just fine, most of the time. Then, seemingly randomly, when I try to run or debug my app from Eclipse, the Console in Eclipse

相关标签:
18条回答
  • 2020-12-07 09:53

    I have had the same problem and restarting ADB wouldn't work for me. Sometimes rebooting my phone worked but not always, I was unable to program for about a week because of this glitch and I think I finally found a workaround! :-D

    First of all, kill every program running on your phone. Having some kind of taskmanager makes this a quick task, otherwise you'll have to manually kill them all one at a time.

    If that doesn't fix it, you will need to go to your phone settings, then go to "Applications", then go to "Running services", and kill every service in there. I'm using a Droid Incredible and I have yet to have this not work for me. :-)

    So, the short answer is, kill all apps, and all services.

    Also, keep in mind, you will need to close, and re-open eclipse to see if this fix has worked for you. I hope this works for you, I know it did for me! :-D

    0 讨论(0)
  • 2020-12-07 09:54

    Nexus One here, CyanogenMod 7 (Android 2.3.7)... disable and reenable:

    Settings > Applications > Development > USB debugging

    And everything works now on Eclipse and Mac OS X 10.7.3.

    0 讨论(0)
  • 2020-12-07 09:56

    This error occurs when somehow the Android Debug Bridge , which is the tool to send data from our computer to the connected device, disconnects. As we know, there are some layers to get connected like the adb itself and of course, the last layer is the USB cable, so when you already tried to restart your adb script and seem not working, you just need to reconnect your cable.

    0 讨论(0)
  • 2020-12-07 09:57

    I was able to clear this only by cycling the USB Debugging option on the phone.

    0 讨论(0)
  • 2020-12-07 09:58

    I fixed it just by disabling and enabling the debugging configuration on my device (SonyEricsson Xperia)

    0 讨论(0)
  • 2020-12-07 09:58

    As per Maven Explanation I tried this solution. but I was getting the same problem. So I restarted the device. And it started working perfectly.

    0 讨论(0)
提交回复
热议问题