Android-无法安装* smartsocket *侦听器 [英] Android - could not install *smartsocket* listener
问题描述
当我尝试运行Android应用程序时,出现以下异常:
When I try run my Android application I get this exception:
等待设备时出错:java.lang.RuntimeException:无法到
创建调试桥:无法启动adb服务器:错误:
无法安装 smartsocket 侦听器:无法绑定到127.0.0.1:5037:尝试了
以访问套接字
权限所禁止的方式访问套接字。 (10013)无法从ADB服务器
中读取ok *无法启动守护程序*错误:无法连接至守护程序'C:\Users\XXX\AppData\Local\Android\Sdk\platform -tools\adb.exe,启动服务器的
失败-必要时手动运行
Error while waiting for device: java.lang.RuntimeException: Unable to create Debug Bridge: Unable to start adb server: error: could not install smartsocket listener: cannot bind to 127.0.0.1:5037: An attempt was made to access a socket in a way forbidden by its access permissions. (10013) could not read ok from ADB Server * failed to start daemon * error: cannot connect to daemon 'C:\Users\XXX\AppData\Local\Android\Sdk\platform-tools\adb.exe,start-server' failed -- run manually if necessary
所以我尝试可以使用以下命令手动操作:
So I try do it manualy with these commands:
adb kill-server
adb kill-server
- 响应:*服务器未运行*
- 下一个例外是响应:
- 重新启动以确保没有adb实例正在运行
- 在Android Studio中启动SDK Manager:工具-> Android-> SDK管理器
- 选择 SDK工具选项卡
- 取消选择Android SDK平台工具item
- 单击应用
- 检查屏幕上的日志,以确保卸载成功,并且SDK / platform-tools文件夹为空。
- Reboot to ensure no instances of adb is running
- Launch SDK Manager in Android Studio: Tools->Android->SDK Manager
- Select the SDK Tools tab
- Deselect Android SDK Platform-Tools item
- Hit Apply
- Check the on screen logs to make sure the un-installation succeeded and that the SDK/platform-tools folder is empty.
- 现在重新选择Android SDK Platform-Tools项
- 点击应用
- 在屏幕上查看安装成功的日志。 / li>
- Now re-select the Android SDK Platform-Tools item
- Hit apply
- Check the on screen logs that installation was successful.
adb起始服务器
adb start-server
*守护程序未运行。现在在端口5037上启动它*错误:无法安装 smartsocket 侦听器:无法绑定到127.0.0.1:5037:尝试以
的访问方式禁止访问该套接字
权限。 (10013)无法从ADB服务器读取ok
*daemon not running. starting it now on port 5037 * error: could not install smartsocket listener: cannot bind to 127.0.0.1:5037: An attempt was made to access a socket in a way forbidden by its access permissions. (10013) could not read ok from ADB Server
*无法启动守护程序*错误:无法连接到守护程序
*failed to start daemon * error: cannot connect to daemon
我正在任务管理器中查找adb进程,但未运行。有任何想法吗?谢谢。
I looking for adb process in my task manager but not running. Any ideas? Thanks.
推荐答案
如果您一直遇到这种情况,并且终止并重新启动仍然不起作用,则可能是一个问题与您的adb安装。我必须重新安装adb才能解决此问题:
If you have the situation where this keeps happening and killing and restarting still doesn't work it may be a problem with your adb installation. I had to reinstall adb to resolve this problem:
这应该从您的SDK中完全删除adb。
This should completely remove adb from your SDK.
我怀疑我的平台工具更新失败了,也许是因为它无法杀死正在运行的adb.exe,并且只有一部分应用更新导致adb安装不稳定。
I suspect in my case an update of the platform tools had failed perhaps because it failed to kill a running adb.exe and only a partial update was applied resulting in an unstable adb installation.
这篇关于Android-无法安装* smartsocket *侦听器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!