Android模拟器没有蓝牙功能
BluetoothAdapter adapter=BluetoothAdapter.getDefaultAdapter();
适配器返回null值。
参考: 有支持蓝牙的手机模拟器吗? https://www.android-x86.org/