大部分时间,我都可以在手机上运行和调试Android应用。然后,似乎是随机的,当我尝试从Eclipse运行或调试应用程序时,Eclipse中的控制台显示:
[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 7,ADT插件0.9.6,Nexus One,Android 2.2.1。
有什么好主意吗?