ddms: 'adb.exe,start-server' 失败——如有必要,手动运行 Android Studio [英] ddms: 'adb.exe,start-server' failed -- run manually if necessary, Android Studio

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

问题描述

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

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

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

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

    我确实在 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,start-server' 失败——如有必要,手动运行 Android Studio的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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