Android Studio常见问题解决方案

来源:互联网 发布:淘宝视频链接在哪里找 编辑:程序博客网 时间:2024/06/13 23:41

1、调试的时候连不上手机或者模拟器,提示一下问题

Unable to create Debug Bridge: Unable to start adb server: error: could not install *smartsocket* listener: cannot bind to 127.0.0.1:5037: 通常每个套接字地址(协议/网络地址/端口)只允许使用一次。 (10048)

error: unknown host service
could 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

解决方案:

根据提示查看adb的端口号5037被谁占用

在cmd下通过 netstat -aon|findstr “5037” 找出相应的pid号,

再通过任务管理器找到相应pid号的进程,然后将其结束就行。

0 0
原创粉丝点击