eclipse 错误:Adb 连接错误:现有连接被远程主机强行关闭
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/22586587/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Error: Adb connection Error:An existing connection was forcibly closed by the remote host
提问by user2755399
I am trying to upload a basic program from eclipse to my phone but I have been having difficulties. When I attempt to upload the program, the device chooser says that the target is "unknown." I tried resetting the adb in the DDMS and receive the following error,
我正在尝试将一个基本程序从 eclipse 上传到我的手机,但我一直遇到困难。当我尝试上传程序时,设备选择器说目标是“未知”。我尝试在 DDMS 中重置 adb 并收到以下错误,
"Adb connection Error:An existing connection was forcibly closed by the remote host"
“Adb 连接错误:现有连接被远程主机强行关闭”
I have searched other posts and tried resetting the adb by clicking on the error in the device view. I also tried killing and re-starting the adb manually in the control prompt. I also tried updating the driver software in the device manager. I also tried downloading the google usb driver from the android developer page (http://developer.android.com/sdk/win-usb.html#top). Nothing has helped.
我搜索了其他帖子并尝试通过单击设备视图中的错误来重置 adb。我还尝试在控制提示中手动杀死并重新启动 adb。我还尝试在设备管理器中更新驱动程序软件。我还尝试从 android 开发人员页面 ( http://developer.android.com/sdk/win-usb.html#top)下载 google usb 驱动程序。没有任何帮助。
Any additional help to fix this problem would be appreciated.
任何解决此问题的额外帮助将不胜感激。
采纳答案by user2755399
I needed to update my adb version to 1.0.31 as indicated in the note in the link below.
我需要将我的 adb 版本更新到 1.0.31,如下面链接中的注释所示。
http://developer.android.com/tools/device.html#setting-up
http://developer.android.com/tools/device.html#setting-up
However, I then ran into a problem with the Android API 19 SDK platform not upgrading. Apparently this is a known issue and the next link gave suggestions to over come this.
但是,我随后遇到了 Android API 19 SDK 平台未升级的问题。显然这是一个已知问题,下一个链接给出了解决这个问题的建议。
Android SDK Manager doesn't load the latest Android SDK Platform (API 17)
回答by Razvan Cirstei
Make sure to connect with Camera (PTP) http://www.techotopia.com/index.php/Testing_Android_Applications_on_a_Physical_Android_Device_with_ADB
确保连接相机 (PTP) http://www.techotopia.com/index.php/Testing_Android_Applications_on_a_Physical_Android_Device_with_ADB