简体   繁体   English

为什么adb服务器已过时。 在命令提示符下杀死...?

[英]why adb server is out of date. killing… on command prompt?

I have updated android sdk upto for Android 2.2 api level 8. After that I was trying to install apk through adb shell as "adb install" but it was not installing and displays "adb server is out of date. killing..." when I did "adb devices" it was not showing devices. 我已经将Android sdk更新为Android 2.2 api级别8。之后,我尝试通过adb shell作为“ adb install”安装apk,但未安装,并显示“ adb服务器已过时。正在杀死...”,我做了“ adb设备”,没有显示设备。 why is that. 这是为什么。 Please let me know. 请告诉我。

Thanks, Vishakha. 谢谢,维沙卡。

adb被杀死后,您是否运行过“ adb启动服务器”?

I faced the same issue when I tried to launch my first app today. 今天我尝试启动我的第一个应用程序时遇到了同样的问题。 And I found the solution. 我找到了解决方案。 By the way, I was using Windows7. 顺便说一句,我正在使用Windows7。 But I think on Linux, the issue may be similar. 但是我认为在Linux上,问题可能相似。

  1. found the port that adb required is 5037 D:\\Installs\\adt\\sdk\\platform-tools>adb nodaemon server cannot bind 'tcp:5037' 发现adb所需的端口是5037 D:\\ Installs \\ adt \\ sdk \\ platform-tools> adb nodaemon服务器无法绑定'tcp:5037'

  2. check which process in on 5037 检查哪个进程在5037
    D:\\Installs\\adt\\sdk\\platform-tools>netstat -ano|findstr "5037" TCP 127.0.0.1:5037 0.0.0.0:0 LISTENING 3908 TCP 127.0.0.1:5037 127.0.0.1:54530 ESTABLISHED 3908 TCP 127.0.0.1:54530 127.0.0.1:5037 ESTABLISHED 10728 D:\\ Installs \\ adt \\ sdk \\ platform-tools> netstat -ano | findstr“ 5037” TCP 127.0.0.1:5037 0.0.0.0:0侦听3908 TCP 127.0.0.1:5037 127.0.0.1:54530建立了3908 TCP 127.0。 0.1:54530 127.0.0.1:5037成立10728

  3. kill the process 3908 杀死进程3908

Then start your adb. 然后启动您的adb。 it should work for you now. 它现在应该为您工作。

I also had this problem today, turns out I disabled my network drivers because I had WIFI/LAN issues. 我今天也遇到了这个问题,原来我禁用了网络驱动程序,因为我遇到了WIFI / LAN问题。 re-enabling fixed the issue 重新启用解决了该问题

I have heard of a number of things required to fix this, mainly involving ensuring you do not have conflicting adb.exe files linked in your PATH variable. 我听说过解决此问题所需的许多方法,主要涉及确保PATH变量中链接的adb.exe文件没有冲突。

The issue with mine is that I am using Genymotion and it was not configured to use the SDK previously installed on my machine. 我的问题是我正在使用Genymotion,但未配置为使用以前安装在计算机上的SDK。 How to fix this can be seen here . 如何解决此问题,请参见此处

If you are using HTC Sync or another custom backup application that may contain adb.exe, you can try this tool: ADBFix 如果您使用的是HTC Sync或其他可能包含adb.exe的自定义备份应用程序,则可以尝试使用此工具: ADBFix

Once you have made your changes kill the process running port 5037 as specified by Dan . 进行更改后,请终止运行Dan所指定的端口5037的进程。 For me the process was AndroidInterface.exe. 对我来说,该过程是AndroidInterface.exe。 Then navigate to the platform-tools folder of the SDK and run adb start-server to restart adb. 然后导航到SDK的platform-tools文件夹,并运行adb start-server以重新启动adb。

Just uninstall the SDK-Tools and reinstall. 只需卸载SDK-Tools并重新安装即可。 All good! 都好!

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

相关问题 adb服务器已过期。 正在杀死…ADB服务器未确认*无法启动守护程序* - adb server is out of date. killing… ADB server didn't ACK * failed to start daemon * adb服务器已过期。 kill ...无法绑定'tcp:5037'ADB服务器没有确认*在ubuntu 14.04 LTS中无法启动守护进程* - adb server is out of date. killing… cannot bind 'tcp:5037' ADB server didn't ACK * failed to start daemon * in ubuntu 14.04 LTS 无法在ubuntu中运行adb命令adb服务器已过期 - Cannot run adb command in ubuntu adb server is out of date Android-命令提示符中的ADB命令(Windows) - Android - ADB Command in Command Prompt (Windows) 如何解决“ adb服务器已过期”错误 - How can I resolve “adb server is out of date” error 通过命令提示符和ADB可以在一行上显示多个命令 - Multiple commands on one line with Command Prompt and ADB 如何从命令提示符打开 android adb? - How to open android adb from command prompt? Google Play服务已过期。 需要4030500但找到3266132 - Google Play services out of date. Requires 4030500 but found 3266132 Google Play服务已过期。 需要11910000但找到11577470 - Google Play services out of date. Requires 11910000 but found 11577470 Google Play服务已过期。 需要7571000但找到6774470 - Google Play services out of date. Requires 7571000 but found 6774470
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM