Unable to create Debug Bridge:Unable to start adb server

Unable to create Debug Bridge:Unable to start adb server

Original  July 07, 2016 10:05:14
  • 5596

When I open Android studio , I get an error.

Unable to create Debug Bridge: Unable to start adb server: error: could not install *smartsocket* listener: cannot bind to 127.0.0.1:5037: Usually each socket address (protocol/network address/port) is only allowed once . (10048)

error: unknown host servicecould not read ok from ADB Server* failed to start daemon *error: cannot connect to daemon'D:\installed\Android\sdk\platform-tools\adb.exe,start-server' failed -- run manually if necessar


Solution:

According to the prompt, check who is occupied by the port number 5037 of adbFind out the corresponding pid number by netstat -aon|findstr "5037"


This step is explained below: Ctrl+alt+delete to enter the startup task manager, enter the process, view the selection column, and confirm the pid, you can find it.

Then find the process with the corresponding pid number through the task manager or command tasklist to see all the process information , then uninstall it, and finally restart adb.




It is best to occupy the mobile assistant in the computer. It is best to uninstall it.



Another possibility:

如果你有用Genimotion的话,那么出现这个问题是因为genimotion使用自己的adb server而不是Android SDK的adb server(用同一个端口号,明显会引起冲突)。解决的方法就是 打开Genymotion->Setting->ADB ,然后选择Use custom Android SDK Tools,选择自己电脑的 Android SDK 的路径,重新启动Genymotion就可以了。

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325839481&siteId=291194637