我自己的做法,就是--進程里關掉“wandoujiaXXXX”---啟動命令cmd+(adb kill-server)----重啟eclipse。 搞定.
(下面的都是看的別人的解決辦法。可以不看。)
網上搜了很多種,但是對我來說都不管用。引起這個錯誤的原因是有很多方面的。
1.軟件沖突。
首先是豌豆莢,嘗試關閉豌豆莢,重啟eclipse后嘗試run as android application....
2.進程里
關閉adb.exe,重啟eclipse
3.軟件更新
android-sdk的更新
有個老外總結的比較全面:
Try below steps:
- Close the Eclipse if running
- Go to the Android SDK tools directory in Command Prompt
- type
adb kill-server
- then type
adb start-server
- No error message is thrown while starting ADB server, then adb is started successfully.
- Now you can start Eclipse again.
it worked for me this way, Eclipse should be closed before issuing these commands.
前提是你的adb已經配置好了。 如果這時候依然didn't ACK,那么啟動任務管理器,看看是否有adb.exe.有的話關掉,再重復以上動作就可以了。
還有一個比較容易忽視的很重要的問題,就是打開taskmanager的時候,並沒有adb.exe,如果這時候你認為絕對不是adb的問題你就錯了。cmd打開dos,輸入adb kill-server,這個時候才能真正保證kill掉了adb.exe。切記切記!