简体   繁体   English

Android ADB停止工作

[英]Android adb stop working

Until yesterday everything was working perfect until today that I connected my phone (just updated to Jelly Bean) and adb.exe stop working. 直到昨天,一切都运转良好,直到今天,我连接了手机(仅更新为Jelly Bean),而adb.exe停止了工作。 If I execute adb.exe I can see the help but when I want to use any command it just run forever and no message is shown. 如果我执行adb.exe,则可以看到帮助,但是当我要使用任何命令时,它将永久运行并且不显示任何消息。

I tried with "kill-server" and "devices" and it runs forever, no message at all is displayed and I must terminate the process to close it. 我尝试使用“ kill-server”和“ devices”,它永远运行,根本不显示任何消息,我必须终止该进程以将其关闭。

I just connect the same phone to other PC that was fully functional and also adb.exe stop working. 我只是将同一部手机连接到功能齐全的其他PC,并且adb.exe也停止工作。 The strange thing is that adb.exe will not work any more even If I disconnect the phone and/or I connect my tablet. 奇怪的是,即使我断开电话和/或连接平板电脑,adb.exe也将无法再工作。 Adb.exe just got useless. Adb.exe变得毫无用处。

I was using the same phone yesterday (android 4.0), with my tablet (android 4.2) and adb.exe was working. 我昨天在平板电脑(android 4.2)上使用同一部手机(android 4.0),而adb.exe正常工作。

Adb.exe is not corrupted as I checked it MD5 and it is the same as in working pc (5787e5df1a68e7afea82d58e5f0d6549 *adb.exe). 当我检查MD5时,Adb.exe没有损坏,它与工作的PC(5787e5df1a68e7afea82d58e5f0d6549 * adb.exe)相同。

I have Android Debug Bridge version 1.0.31 and Android SDK tools 22. I uninstalled android sdk tools and Installed again but when is near to finish it hangs because it launches adb.exe and again it will run forever. 我有Android Debug Bridge版本1.0.31和Android SDK工具22。我卸载了android sdk工具并再次安装,但是快要完成时挂起,因为它启动了adb.exe,并且它将永远运行。

Please any suggestion or help? 请任何建议或帮助?

Try rebooting. 尝试重新启动。 Sometimes the USB drivers lock up. 有时USB驱动程序会锁定。 I work HEAVILY with ADB in my project at http://android-casual.googlecode.com and I find it to be one of three things when ADB locks up.. 1. USB drivers, or 2. adb_usb.ini needs an update, or 3. on new devices you have to "pair" them so that ADB can perform any action. 我在http://android-casual.googlecode.com上的项目中与ADB进行了大量合作,发现它是ADB锁定时的三件事之一。1. USB驱动程序或2. adb_usb.ini需要更新或3.在新设备上,您必须“配对”它们,以便ADB可以执行任何操作。

To pair, you can disconnect, reconnect and run "adb devies" to display the pairing on the device. 要进行配对,您可以断开连接,重新连接并运行“ adb devies”以在设备上显示配对。

Not sure if you're still facing this issue, but for what it's worth I had the same kind of issue with adb.exe, and came across this post while trying to troubleshoot it. 不知道您是否仍然遇到此问题,但是对于它的价值,我与adb.exe遇到了同样的问题,并在尝试对其进行故障排除时遇到了此问题。 In my case, I wasn't using any physical Android devices, only the Emulator. 就我而言,我没有使用任何物理Android设备,仅使用了模拟器。 Everything had been working fine and then suddenly adb.exe would no longer respond (couldn't get any output from any adb command - it just appeared to hang). 一切正常,然后突然adb.exe将不再响应(无法从任何adb命令获得任何输出-它似乎挂起了)。

In the end, my issue turned out to be another application I had installed on my development machine. 最后,我的问题竟然是我在开发机器上安装的另一个应用程序。 It was starting as a service, and was listening on the exact same port that the adb server runs on (5037), which appeared to be confusing it. 它是作为服务启动的,正在侦听与adb服务器运行的端口完全相同的端口(5037),这似乎使它感到困惑。 Once I changed the application to use a different port, adb started working again and everything was fine. 将应用程序更改为使用其他端口后,adb再次开始工作,一切都很好。

Run command 运行命令

where adb

I had such kind of situation. 我有这种情况。

In my case 就我而言

where adb

gave output 给输出

C:\\Windows\\adb.exe D:\\AndroidSDK\\adt-bundle-windows-x86_64-20131030\\sdk\\platform-tools\\adb.exe

I tried to run adb from disk C, when Eclipse used second adb from AndroidSDK (from disk D). 当Eclipse使用AndroidSDK(来自磁盘D)的第二个adb时,我试图从磁盘C运行adb。

I removed adb from strange path C:\\Windows\\adb.exe , and this solved this problem. 我从奇怪的路径C:\\Windows\\adb.exe删除了adb,这解决了这个问题。

I got the same problem,my solution is going to cmd and paste adb.exe path,and then click enter button. 我遇到了同样的问题,我的解决方案是将cmd粘贴到adb.exe路径,然后单击Enter按钮。

For example 例如

D:\Android\Android\platform-tools\adb.exe

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM