Android 入门问题与解决(一)Please ensure that adb is correctly located at...

来源:互联网 发布:linux下关闭tomcat 编辑:程序博客网 时间:2024/05/16 15:19

新建一个android项目,然后右键项目->Debug As->Android Application 就出现了以下问题:

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

You must restart adb and Eclipse.

Please ensure that adb is correctly located at ”adb.exe的路径" and can be executed.

网上搜查了很久,答案大多是,如下

          使用cmd.exe查看端口使用情况:

                   netstat -aon|findstr "5037"

                    TCP    127.0.0.1:5037         0.0.0.0:0              LISTENING       ****

                    2、发现****占用5037端口,查看****的task:

                    tasklist|findstr "****"

                    然后说在管理器干掉这个进程就可以了。

但是,我那里始终是没有解决。而我的平台之前都是正常的。


最后,我关掉eclipse和虚拟机,然后先开虚拟机,再开eclipse。

奇迹的事情出现了,居然正常了。目前还不知道原因是什么,可是既然能够正常使用了就是好事,跟大家分享下,说不定你也会出现我的问题。 

只需先开虚拟机后再开eclipse。

2015.1.28-23:04

0 0
原创粉丝点击