ADT中,运行Android程序出错:The connection to adb is down, and a severe error has occured

  尼玛,Hello World 都不让我运行。。。

  

  

 

  究其原因就是Android SDK中的adb server没有启动,没有启动成功的原因是adb server的端口被其它程序所占用了。

  相当坑爹:

  

    只能卸载相关程序了。。。

 -------------------------------------------------------------------------------------------

     10月9日更新:

      即使把所有不相干的adb.exe卸载或删除之后仍然无法再AVD上运行程序,

      进一步发现是有程序占据了adb server 需要监听的5037端口,再进一步发现,占据该端口的是金山手机助手......:

    

    

 

   最好关闭各种手机助手及其后台daemon进程,然后通过eclipse在模拟器少运行程序,若依然报错,则在windows任务管理器中kill 掉 adb.exe。然后在cmd中adb start-server ,若adb能正常启动,则一切正常

    参考资料:

    http://visualgdb.com/adbfix/

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

    http://blog.csdn.net/id19870510/article/details/8489486

posted @ 2013-10-08 21:38  chrisya0  阅读(222)  评论(0编辑  收藏  举报