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