在Android12中使用藍牙訪問設備,彈出了提示允許發現並連接到附近設備,但是搜索不到藍牙
Android11:android.permission.BLUETOOTH、android.permission.BLUETOOTH_ADMIN
Android12:android.permission.BLUETOOTH_SCAN、android.permission.BLUETOOTH_ADVERTISE、android.permission.BLUETOOTH_CONNECT
檢查缺少了以下權限,增加成功。
BLUETOOTH_ADVERTISE