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