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

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

问题描述

我可以运行和调试我的我的手机上的Andr​​oid应用程序就好了,大部分的时间。于是,看似随意,当我尝试运行或调试从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 killserver和放大器;&安培;亚行启动服务器):没有错误,没有帮助
  • 重新连接电话:有时的帮助
  • 重新启动计算机:那种激烈的,没有试过尚未
    • Retry: doesn't help, same messages.
    • Restart Eclipse: doesn't help.
    • Restart adb (adb killserver && adb start-server): no errors, doesn't help.
    • Reconnect the phone: sometimes helps.
    • Reboot the computer: kind of drastic, haven't tried this yet.
    • 使用Ubuntu 10.4,伽利略的Eclipse 3.5.2,Android的SDK 7,ADT插件0.9.6,Nexus One的,安卓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天全站免登陆