A股上市公司传智教育(股票代码 003032)旗下技术交流社区北京昌平校区

 找回密码
 加入黑马

QQ登录

只需一步,快速开始

© Android_Robot 中级黑马   /  2016-10-18 15:49  /  2442 人查看  /  1 人回复  /   0 人收藏 转载请遵从CC协议 禁止商业使用本文

本帖最后由 Android_Robot 于 2016-10-19 14:26 编辑

在Android开发过程中,相信很多开发者都会遇到有关Android adb的问题,可能最多的就是adb 的启动问题,有时候会无缘无故的挂掉,下面就奉上有关adb诸多问题的解决方案。

问题1

[java] view plaincopyprint?

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.

解决1:

[plain] view plaincopyprint?

adb kill-server

adb start-server

问题2

[java] view plaincopyprint?

ADB server didn't ACK

* failed to start daemon *

解决2:

DDMS - Devices - Reset adb

如果不行,关闭豌豆荚或者Eclipse重启

问题3

[plain] view plaincopyprint?

Adb failed to restart! Make sure the plugin is properly configured

解决3:

杀死 Wandoujia 相关的所有进程,ok

wandoujia_daemon.exe

wandoujia_helper.exe

问题4

[plain] view plaincopyprint?

** Adb connection Error:远程主机强迫关闭了一个现有的连接

解决1,2,3 都尝试下

问题5

[plain] view plaincopyprint?

java.io.IOException: 您的主机中的软件中止了一个已建立的连接。

at sun.nio.ch.SocketDispatcher.write0(Native Method)

at sun.nio.ch.SocketDispatcher.write(Unknown Source)

at sun.nio.ch.IOUtil.writeFromNativeBuffer(Unknown Source)

at sun.nio.ch.IOUtil.write(Unknown Source)

at sun.nio.ch.SocketChannelImpl.write(Unknown Source)

at com.android.ddmlib.JdwpPacket.writeAndConsume(JdwpPacket.java:213)

at com.android.ddmlib.Client.sendAndConsume(Client.java:575)

at com.android.ddmlib.HandleHeap.sendREAQ(HandleHeap.java:348)

at com.android.ddmlib.Client.requestAllocationStatus(Client.java:421)

at com.android.ddmlib.DeviceMonitor.createClient(DeviceMonitor.java:854)

at com.android.ddmlib.DeviceMonitor.openClient(DeviceMonitor.java:822)

at com.android.ddmlib.DeviceMonitor.processIncomingJdwpData(DeviceMonitor.java:781)

at com.android.ddmlib.DeviceMonitor.deviceClientMonitorLoop(DeviceMonitor.java:649)

at com.android.ddmlib.DeviceMonitor.access$100(DeviceMonitor.java:42)

at com.android.ddmlib.DeviceMonitor$3.run(DeviceMonitor.java:577)

通常是同时打开了两个eclipse,关闭一个即可

问题6

[java] view plaincopyprint?

Failed to install .apk on device '': Unable to open sync connection!

java.io.IOException: Unable to open sync connection!

Launch canceled!

问题7

[java] view plaincopyprint?

ADB rejected shell command (rm /data/local/tmp/AnzhiGame1.1.apk): closed

Error during Sync: Unable to open sync connection!

Error during Sync: Unable to open sync connection!

Adb connection Error:远程主机强迫关闭了一个现有的连接。

Connection attempts: 1

Connection attempts: 2

Connection attempts: 3



其他精华资源推荐:
【强荐!】2016年最新Android学习路线图——按此路线图学习月薪过万{ 火速收入}



1 个回复

倒序浏览
gyy 中级黑马 2016-10-18 22:48:48
沙发
这种情况一般都是adb连不上的原因,尤其是再用ecplise的时候,android studio还好
回复 使用道具 举报
您需要登录后才可以回帖 登录 | 加入黑马