首頁(yè)技術(shù)文章正文

Android培訓(xùn)之a(chǎn)db常見(jiàn)問(wèn)題整理

更新時(shí)間:2017-04-14 來(lái)源: 黑馬程序員Android培訓(xùn)學(xué)院 瀏覽量:

在Android開(kāi)發(fā)過(guò)程中,相信很多開(kāi)發(fā)者都會(huì)遇到有關(guān)Android adb的問(wèn)題,可能最多的就是adb 的啟動(dòng)問(wèn)題,有時(shí)候會(huì)無(wú)緣無(wú)故的掛掉,下面就奉上有關(guān)adb諸多問(wèn)題的解決方案。

問(wèn)題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

問(wèn)題2

[java] view plaincopyprint?

ADB server didn't ACK

* failed to start daemon *

解決2:

DDMS - Devices - Reset adb

如果不行,關(guān)閉豌豆莢或者Eclipse重啟

問(wèn)題3

[plain] view plaincopyprint?

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

解決3:

殺死 Wandoujia 相關(guān)的所有進(jìn)程,ok

wandoujia_daemon.exe

wandoujia_helper.exe

問(wèn)題4

[plain] view plaincopyprint?

** Adb connection Error:遠(yuǎn)程主機(jī)強(qiáng)迫關(guān)閉了一個(gè)現(xiàn)有的連接

解決1,2,3 都嘗試下

問(wèn)題5

[plain] view plaincopyprint?

java.io.IOException: 您的主機(jī)中的軟件中止了一個(gè)已建立的連接。

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)

通常是同時(shí)打開(kāi)了兩個(gè)eclipse,關(guān)閉一個(gè)即可

問(wèn)題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!

問(wèn)題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:遠(yuǎn)程主機(jī)強(qiáng)迫關(guān)閉了一個(gè)現(xiàn)有的連接。

Connection attempts: 1

Connection attempts: 2

Connection attempts: 3


本文版權(quán)歸黑馬程序員Android培訓(xùn)學(xué)院所有,歡迎轉(zhuǎn)載,轉(zhuǎn)載請(qǐng)注明作者出處。謝謝!
作者: 黑馬程序員Android培訓(xùn)學(xué)院
首發(fā):http://pantone-color.com.cn/news/Android.html

分享到:
在線咨詢 我要報(bào)名
和我們?cè)诰€交談!