安卓学习笔记.docThe connection to adb is down, and a severe error has occured.
当在 myeclipse 中运行 android 程序时,可能会遇上 The connection to adb is down, and a severe error has 。你查看\tools目录发现多了一个 文件,里面明确告诉了原因:The adb tool has moved to platformtools。 虞条从SDKR8以后,SDK需要有一个新的组件支持,这个组件叫做Platformtools, adb已经迁移到这个目录下去了。 PATH环境变量中增加\platform-tools路径,。那么如何 解决Eclipse中报的错误提示呢?
解决办法:
1、 , 加\platform-tools 路径即可。在 Eclipse 中选择菜单"help->Check for update",选择更新 ADT即可。按上面操作完成后,重启Eclipse,问题解决!
2、 ,且网络上的方法是否都试过了,还是不行,看你是否安装了 360安全卫士,如果安装了 360, , 启动,导致调试时adb连接不上。先关闭360安全卫士,第一次run,, 再启动360安全卫士,就不会有问题了。
3、 看你是否安装了豌豆夹这个程序,并设置了允许豌豆夹自动连接到手机的选项,如果 是那么在进程中就会有豌豆夹的后台进程,从任务管理器中将豌豆夹的后台进程结束掉, ,再重启Eclipse就OK 了!
二、出现问题了,首先确定你的sdk目录是不是真的在Console输出的那个位置,如果是 的话。接下来现在就要看看到底是谁占用了端口。打开命令编辑器进入你的sdk下的
platform-tools 文件夹输入 adb start-serevr
D:\adt-bundle-windows-x86_64-20130717\sdk\platform-tooIs>adb start—seruer adb seruer is out of date. killing...
ADB seruer didn't ACK
* failed to start daemon *
三、接下来需要确th被占用的端口号是多少,输入命令adb nodaemon server
D: \adt-bundle-windows-x86_64-20130717\sdk\plat£oi'in-too Is >adb start-seruer adb seruer is out of date. killing...
ADB seruer didn't ACK
* failed to start daemon *
D:\adt—bundle—windows-x86_64—2013071?\sdk
安卓学习笔记 来自淘豆网m.daumloan.com转载请标明出处.