您的位置:首页 > 编程语言 > Java开发

Eclipse开发android报错The connection to adb is down

2012-11-02 22:36 381 查看
报错如下:





The connection to adb is down, and a severe error has occured.

[2010-03-11 09:36:56 - HelloOPone] You must restart adb and Eclipse.

[2010-03-11 09:36:56 - HelloOPone] Please ensure that adb is correctly located at 'E:\Android\android-sdk\platform-tools\adb.exe' and can be executed.

解决:

方法1.cmd中adb kill-server,然后adb -startserver



方法2.方法1不管用,那么在任务管理器中杀死adb.exe,然后重启Eclipse。

方法3.方法1和2都不管用,那么查看最后一句报错中:platform-tools中是否有adb.exe(我的错误就是在相关路径下面没有platform-tools文件夹,所以我选择新建一个文件夹,并且把tools中的文件全部复制到platform-tools中)

4.前面是别人总结的方法,我自己碰到的一种情况是“豌豆荚”或“手机助手”类的软件占用了adb,在任务管理器中停止“豌豆荚”及adb后重启adb或eclipse即可。

5.直接重启电脑,然后运行SDK下面的SDK Manager.exe,选择Virtual devices,启动一个模拟器即可。

6.

To restart adb by command line:
adb kill-server
adb start-server


To restart adb in Eclipse:

Window > Show View > Other... > Android/Devices

When the view is showing: View Menu of "Devices" > Reset adb
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐