Android adb“无法打开同步连接” [英] Android adb "Unable to open sync connection!"

查看:125
本文介绍了Android adb“无法打开同步连接”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以在手机上运行和调试我的Android应用程序,大部分时间。然后,当我尝试从Eclipse运行或调试我的应用程序时,看似随机,Eclipse中的控制台说:

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 says:

[2010-10-12 09:36:48 - myapp] Android Launch!
[2010-10-12 09:36:48 - myapp] adb is running normally.
[2010-10-12 09:36:48 - myapp] Performing com.mycompany.myapp.MyActivity activity launch
[2010-10-12 09:36:48 - myapp] Automatic Target Mode: using device 'HT01TP800561'
[2010-10-12 09:36:48 - myapp] Uploading myapp.apk onto device 'HT01TP800561'
[2010-10-12 09:36:48 - myapp] Failed to upload myapp.apk on device 'HT01TP800561'
[2010-10-12 09:36:48 - myapp] java.io.IOException: Unable to open sync connection!
[2010-10-12 09:36:48 - myapp] Launch canceled!




  • 重试:不帮助,相同的消息。

  • 重新启动Eclipse:不帮助。

  • 重新启动adb( adb kill-server&& adb start-server
  • 重新连接手机:有时帮助。

  • 使用Ubuntu 10.4,Eclipse Galileo 3.5.2,Android SDK重新启动计算机:有些激烈,还没有尝试过。

    • Retry: doesn't help, same messages.
    • Restart Eclipse: doesn't help.
    • Restart adb (adb kill-server && adb start-server): no errors, doesn't help.
    • Reconnect the phone: sometimes helps.
    • Reboot the computer: kind of drastic, haven't tried this yet.
    • 7,ADT插件0.9.6,Nexus One,Android 2.2.1。

      Using Ubuntu 10.4, Eclipse Galileo 3.5.2, Android SDK 7, ADT plugin 0.9.6, Nexus One, Android 2.2.1.

      任何明智的想法?

      推荐答案

      我有完全相同的问题,但我已经把手机连接到电脑的USB端口。有时断开连接并重新连接线路,但后来它完全停止工作。
      但是,禁用手机上的USB调试,然后重新启用它已经工作到目前为止。希望它一直在工作!这些修复真的好像是傻的黑客..我不知道底层的问题是什么。

      I was having exactly the same problem, but I already had my phone connected to the computer's USB port. Sometimes disconnecting and reconnecting the cord worked but then it stopped working completely. However, disabling USB debugging on the phone and then re-enabling it has worked so far. Hopefully it keeps working! These fixes really seem like silly hacks.. I'm not sure what the underlying problem is.

      这篇关于Android adb“无法打开同步连接”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆