gpt4 book ai didi

android - Google Nearby Connections 2.0 是否支持在模拟器上开发?

转载 作者:搜寻专家 更新时间:2023-11-01 09:32:00 24 4
gpt4 key购买 nike

我一直在尝试获得一个在一些模拟设备上运行的示例,但这并不容易:模拟器不支持蓝牙,所以我认为它会 auto-fall-back to WiFi, or even supersonic communication ?但即使在获得权限后(是的),它也会因以下内容而死亡。

E/NearbyConnections: Failed startAdvertising(1, 4, 0, 5, 5, 8) for client 102877343 because we couldn't start listening for incoming Bluetooth connections to ServiceId MYID
W/MeshConnection: Advertising failed. Received status 8007 STATUS_BLUETOOTH_ERROR
E/NearbyConnections: Failed startDiscovery() for client 102877343 because we couldn't scan on Bluetooth nor BLE for serviceId MYID
W/MeshConnection: Discovering failed. Received status 8007 STATUS_BLUETOOTH_ERROR

最佳答案

我四处打听了一下,结果发现 Nearby Connections 2.0 使用蓝牙建立连接,然后在可用时适时升级到 WiFi,因此它确实需要 BT 才能启动——所以不要在模拟器上运行它。

关于android - Google Nearby Connections 2.0 是否支持在模拟器上开发?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46370804/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com