首页 > 解决方案 > Android:无法与 Azure 服务总线主题建立连接

问题描述

在 Android 上,我无法与 Azure 服务总线主题建立连接。

笔记:

1. I have observed this issue only on Android.

2. The same code works using a test project.

3. I have verified that the same connectionstring is being used in both scenarios.

4. I can execute web service calls from the Android client.

这是代码:

let  client = ManagementClient(connectionstring)
let! found  = client.TopicExistsAsync(topicName) |> Async.AwaitTask // ERROR OCCURS HERE...

错误描述:

无法解析主机“XXX.servicebus.windows.net”:没有与主机名关联的地址

标签: xamarin.androidazureservicebus

解决方案


我通过执行以下操作解决了这个问题:

  1. 推出 Android SDK Manager 并安装 Google Play Services
  2. 删除了我的 Android 模拟器并创建了新的

推荐阅读