运行Android应用时提示ADB是否存在于指定路径问题


 

打开eclipse,选择指定的Android应用工程并Run,提示:

[2014-06-28 11:32:26 - LinearLayout] The connectionto adb is down, and a severe error has occured.

[2014-06-28 11:32:26 - LinearLayout] You mustrestart adb and Eclipse.

[2014-06-28 11:32:26 - LinearLayout] Please ensurethat adb is correctly located at 'D:ADT bundlesdkplatform-toolsadb.exe' andcan be executed.

参考

http://www.crifan.com/android_adt_the_connection_to_adb_is_down__and_a_severe_error_has_occured/

解决问题的总结如下:

(1)    退出eclipse。

(2)    去对应的adb所在目录下,打开cmd,执行adb.exe kill-server先杀掉adb(虽然在windows任务管理器中没有看到adb.exe正在运行),然后执行adbstart-server重启启动adb,如下图:


图1

(3)    重启eclipse就OK了。

 

去掉之前在classpath中增加的路径D:ADT bundlesdkplatform-tools;D:ADT bundlesdk ools,也OK,所以问题不在这里,应该是ADB本身存在bug,因为之前我不需要做其他设置也可以正常使用的。

 

另一个相关链接:http://lele9001.blog.163.com/blog/static/339734201392924258443/

 

原文地址:https://www.cnblogs.com/liang123/p/6325514.html