Xamarin.android 尝试运行Xamarin.UITest时未能执行adb.exe

Xamarin.android 尝试运行Xamarin.UITest时未能执行adb.exe,xamarin.android,xamarin.uitest,Xamarin.android,Xamarin.uitest,我想在没有任何运气的情况下设置一个Xamarin UITest 当我尝试运行“所有测试”时,出现以下错误: execute: C:\Users\Brandon\AppData\Local\Android\android-sdk\platform-tools\adb.exe devices - exit code: 1 error: could not install *smartsocket* listener: cannot bind to 127.0.0.1:5037: Only one u

我想在没有任何运气的情况下设置一个Xamarin UITest

当我尝试运行“所有测试”时,出现以下错误:

execute: C:\Users\Brandon\AppData\Local\Android\android-sdk\platform-tools\adb.exe devices - exit code: 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)
List of devices attached
adb server version (39) doesn't match this client (36); killing...
could not read ok from ADB Server
* failed to start daemon *
error: cannot connect to daemon
ADB似乎启动得很好,奇怪的是,它似乎在使用另一个用户的ADB版本,尽管

1) 对于Android SDK,工具>选项>Xamarin>Android设置为与上述不同的路径

2) 对于上面引用的adb.exe路径,我找不到任何系统环境路径变量


我遗漏了什么吗?

在我的例子中,是Android仿真器版本不匹配。Emulator以某种方式更新到了较新的版本:

卸载Emulator后,将提要切换到Microsoft而不是google并重新安装Emulator-错误消失了,一切正常