ddms:“ adb.exe,启动服务器”失败-必要时手动运行,Android Studio [英] ddms: 'adb.exe,start-server' failed -- run manually if necessary, Android Studio

查看:120
本文介绍了ddms:“ adb.exe,启动服务器”失败-必要时手动运行,Android Studio的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

无论我使用的是ADT还是Android Studio,我的adb都已关闭。

My adb is down, no matter I am using ADT or Android Studio.

然后根据第二个答案这个SO问题,我做到了:

And according to the second answer of this SO question, I did:


  1. 我键入:

  1. I type:

adb nodaemon server

输出:

cannot bind 'tcp:5037'


  • 然后 netstat -ano | findstr 5037

    我确实找到了一个7416的pid,他们在 127.0.0.1:5037

    I did find a pid of 7416 who listen in 127.0.0.1:5037

    我使用 taskkill / pid 7416 -f 杀死它。

    我键入 netstat -ano |再次找到findstr 5037 ,我又发现了另一个pid监听 127.0.0.1:5037

    I type netstat -ano | findstr 5037 again, I found another pid listens at 127.0.0.1:5037 again!

    我想它们是相同的,但我不知道它是谁。

    I guess they are the same, but I have no idea who it is.

    我可以简单地拥有一个释放该端口或将adb端口更改为另一个端口的简便方法?

    Can I simply have a easy way to release this port or change the adb port to another one?

    推荐答案

    我终于解决了这个问题!我终于找到了pid的程序名称,并在任务管理器中将其杀死。

    I solve this problem at last! I finally found the program name of the pid and I kill it in the task manager.

    问题中描述了检测方法:

    The way to detect is described in the question:


    1. adb nodaemon服务器

    1. adb nodaemon server

    输出:


    不能绑定'tcp:5037'

    cannot bind 'tcp:5037'

    2。然后 netstat -ano | findstr 5037 查找谁占用了此端口。

    2.and then netstat -ano | findstr 5037 to find who takes this port.

    获取pid并在任务管理器中找到它。请注意,进程选项卡可能不会显示pid列,我们应该通过设置将其包括在内。

    Get the pid and find it in the task manager. Please note that the process tab may not show the column of pid, we should include it by setting.

    在我的情况下,tfadb.exe占用了此端口!这是中文视频节目的客户端!尝试在任务管理器中将其杀死。

    In my case, it is tfadb.exe who takes this port! This is a Chinese Video program client! Try to kill it in task manager.

    现在我从启动开始就停止了它。问题已解决。

    Now I stop it starting from booting. The problem is solved.

    这篇关于ddms:“ adb.exe,启动服务器”失败-必要时手动运行,Android Studio的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

  • 查看全文
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆