遇到问题描述:
运行android程序控制台输出以下错误信息:
[2014-05-22 22:26:32 - Dialect] The connection to adb is down, and a severe error has occured.
[2014-05-22 22:26:32 - Dialect] You must restart adb and Eclipse.
[2014-05-22 22:26:32 - Dialect] Please ensure that adb is correctly located at 'G:\Android\adt-bundle-windows-x86_64english\sdk\platform-tools\adb.exe' and can be executed.
有很多种情况,所以也有很多解决方法,简要介绍如下:
1、任务管理器 kill掉adb 或者重启adb server
2、查看任务管理器没有adb,猜测是某个程序占用了adb端口
5037为adb默认端口 查看该端口情况如下:
查看:用快捷键Windows+R打开系统运行窗口,输入cmd命令 ,打开命令管理器,在里面输入命令—— netstat -aon|findstr "5037"
TCP 127.0.0.1:5037 0.0.0.0:0 LISTENING 4276
发现4276占用了 5037端口,继续查看4276的task:
查看: 继续输入命令—— tasklist|findstr "4276"
360MobileMgr.exe 4276 Console 1 5,388 K
发现是360MobileMgr.exe占用,直接在任务管理器里面kill掉或
taskkill /f /im 360MobileMgr.exe
Tip:1)、tasklist 可以找到任务管理器所有进程
2)、taskkilll /f /im 程序名1.exe /f /im 程序名2.exe .... 可以kill掉多个程序
3、重新开启adb
adb kill-server
adb start-server
C:\Users\hzb92>adb kill-server
C:\Users\hzb92>adb start-server
* daemon not running. starting it now *
* daemon started successfully *
4、重启Eclipse,问题解决
[2014-05-22 23:00:20 - Dialect] Android Launch!
[2014-05-22 23:00:20 - Dialect] adb is running normally.
[2014-05-22 23:00:20 - Dialect] Performing net.lybdt.dialect.LauncherActivity activity launch
[2014-05-22 23:00:20 - Dialect] Automatic Target Mode: launching new emulator with compatible AVD 'hzb92'
[2014-05-22 23:00:20 - Dialect] Launching a new emulator with Virtual Device 'hzb92'
运行android程序控制台输出以下错误信息:
[2014-05-22 22:26:32 - Dialect] The connection to adb is down, and a severe error has occured.
[2014-05-22 22:26:32 - Dialect] You must restart adb and Eclipse.
[2014-05-22 22:26:32 - Dialect] Please ensure that adb is correctly located at 'G:\Android\adt-bundle-windows-x86_64english\sdk\platform-tools\adb.exe' and can be executed.
有很多种情况,所以也有很多解决方法,简要介绍如下:
1、任务管理器 kill掉adb 或者重启adb server
2、查看任务管理器没有adb,猜测是某个程序占用了adb端口
5037为adb默认端口 查看该端口情况如下:
查看:用快捷键Windows+R打开系统运行窗口,输入cmd命令 ,打开命令管理器,在里面输入命令—— netstat -aon|findstr "5037"
TCP 127.0.0.1:5037 0.0.0.0:0 LISTENING 4276
发现4276占用了 5037端口,继续查看4276的task:
查看: 继续输入命令—— tasklist|findstr "4276"
360MobileMgr.exe 4276 Console 1 5,388 K
发现是360MobileMgr.exe占用,直接在任务管理器里面kill掉或
taskkill /f /im 360MobileMgr.exe
Tip:1)、tasklist 可以找到任务管理器所有进程
2)、taskkilll /f /im 程序名1.exe /f /im 程序名2.exe .... 可以kill掉多个程序
3、重新开启adb
adb kill-server
adb start-server
C:\Users\hzb92>adb kill-server
C:\Users\hzb92>adb start-server
* daemon not running. starting it now *
* daemon started successfully *
4、重启Eclipse,问题解决
[2014-05-22 23:00:20 - Dialect] Android Launch!
[2014-05-22 23:00:20 - Dialect] adb is running normally.
[2014-05-22 23:00:20 - Dialect] Performing net.lybdt.dialect.LauncherActivity activity launch
[2014-05-22 23:00:20 - Dialect] Automatic Target Mode: launching new emulator with compatible AVD 'hzb92'
[2014-05-22 23:00:20 - Dialect] Launching a new emulator with Virtual Device 'hzb92'