2017-09-22 118 views
2

我一直在试图获得一个仿真设备的例子,它并不容易:模拟器不支持蓝牙,所以我认为它会auto-fall-back to WiFi, or even supersonic communication?但即使获得权限的工作(耶),它会随着以下消失。Google Nearby Connections 2.0是否支持模拟器上的开发?

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 

回答

2

我做了一些四处询问,并且事实证明,最近连接2.0使用蓝牙进行连接,然后伺机升级到无线网络连接(如果可用),所以它需要的BT踢东西了 - 所以没有运行它在仿真器上。