【发布时间】:2016-10-10 00:44:59
【问题描述】:
我正在尝试在 Visual Studio 中运行示例 TipCalc Xamarin (Android) 应用程序,但是在它编译并运行 Android 模拟器后,我被告知:
adb 服务器版本 (32) 与此客户端 (36) 不匹配
我该如何解决这个问题?我已经更新了 Xamarin 和 Android SDK 文件,并且 Xamarin 正确指向我的 android SDK 位置 (D:\dev\Xamarin\AndroidSDK)。
这是我的 Android SDK 管理器的截图:
这是输出的更大的 sn-p:
1>D:\dev\Xamarin\AndroidSDK\platform-tools\adb.exe -s 169.254.138.177: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>List of devices attached
1>adb server version (32) doesn't match this client (36); killing...
1>could not read ok from ADB Server
1>* failed to start daemon *
1>error: cannot connect to daemon
1>
1>Selected device is not running.
1>Build FAILED.
更新:安装 Android SDK Build-tools 24.0.3(并删除 23.0.2)没有帮助。
this question 提供的这个答案没有帮助,因为我不知道 Appium 或 Genymotion 是什么,我也不使用 PHP。我同意虽然它们都是由 android 调试器引起的,但我需要 Xamarin 修复。
【问题讨论】:
-
使用 Genymotion?
-
@SushiHangover 我不知道 Genymotion 是什么。我只是在使用 Xamarin .Android。我看过的另一篇文章对我没有帮助。
标签: c# android xamarin visual-studio-2015 xamarin.android