ddms: 'adb.exe,start-server' failed — run

2019-02-02 03:05发布

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. I type:

    adb nodaemon server
    

    Output:

    cannot bind 'tcp:5037'
    
  2. Then netstat -ano | findstr 5037

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

  3. I use taskkill /pid 7416 -f to kill it.

  4. 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.

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

12条回答
啃猪蹄的小仙女
2楼-- · 2019-02-02 04:02

Sometimes there are conflicts between ADB Genymotion and ADB SDK because both of them use the same port. So I recommend always set up ADB Genymotion to use the ADB SDK, in that way to avoid incompatible issues.

Genymotion-> Settings -> ADB -> Use custom Android SDK tools (here your set up your sdk android location).enter image description here

查看更多
\"骚年 ilove
3楼-- · 2019-02-02 04:02

I solved by End task "adb.exe" background process from task manager. and Start adb thats it :)

查看更多
时光不老,我们不散
4楼-- · 2019-02-02 04:02

Just goto the task manager on your PC, and kill adb.exe, then back to your android studio. it should initialize and reconnect.

查看更多
我只想做你的唯一
5楼-- · 2019-02-02 04:09

Open the Genymotion emulator after opening The Android studio.

查看更多
小情绪 Triste *
6楼-- · 2019-02-02 04:10

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 server

Output:

cannot bind 'tcp:5037'

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

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.

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.

查看更多
Anthone
7楼-- · 2019-02-02 04:10

Close Android studio then go to Task Manager

  • End Task adb.exe
  • goto Details menu
    • End Task java.exe and jusched.exe

now open Android Studio it will work properly

查看更多
登录 后发表回答