我试图在Visual 2015上运行Xamarin Forms Phoneword演示程序,无法在模拟器中打开该应用程序。模拟设备打开,似乎工作,但我的应用程序从来没有出现在其中。
我收到了以下错误:“无法安装智能手机监听器:无法绑定到127.0.0.1:5037:通常只允许使用每个套接字地址(协议/网络地址/端口)一次。”(10048) .然后是亚行服务器错误。
我已经为智能眼镜错误和亚行服务器错误寻找了解决方案,但没有任何帮助。(这是我第一次尝试在Visual上开发Android,所以这可能是一个新手错误。)
这是VS输出日志:
1>Deploying 5.1" Marshmallow (6.0.0) XXHDPI Phone ...
1>Build started.
1>C:\Users\Royce.WKS\AppData\Local\Android\sdk\platform-tools\adb.exe -s 169.254.190.187:5555 devices
1>error: could not install *smartsocket* listener: cannot bind to 127.0.0.1:5037: Only one usage of each socket address (protocol/network address/port) is normally permitted. (10048)
1>could not read ok from ADB Server
1>* failed to start daemon *
1>error: cannot connect to daemon
1>List of devices attached
1>adb server version (32) doesn't match this client (36); killing...
1>
...
and 46000+ characters device list.
...
1>Selected device is not running.
1>Build FAILED.如有任何建议,将不胜感激。
发布于 2016-12-28 12:25:04
我在这个线程Visual Studio 2015 Android Emulator issue上找到的
答案是:
手动连接亚行连接:5555,然后重试。
这对我有效,尽管我所犯的错误与另一个问题所描述的不一样。
https://stackoverflow.com/questions/41349069
复制相似问题