我刚开始接触 JSR-82 库,因为我需要在智能手机和 RaspberryPi 之间实现一些蓝牙功能,这时代码
try {
LocalDevice local = LocalDevice.getLocalDevice();
System.out.println(local.getBluetoothAddress());
System.out.println(local.getFriendlyName());
}
catch (BluetoothStateException e){
System.out.println(e.getMessage());
}
给我以下消息:“这不是 JSR-82 实现”。错误消息来自 catch 块。有没有人遇到过这个问题?我在互联网上找不到任何东西。
我正在使用 MacOS Sierra 10.12.4 和 Eclipse Oxygen 最新版本。我从这边下载了JSR-82.jar:http: //mvnrepository.com/artifact/org.microemu/microemu-jsr-82
非常感谢任何帮助,谢谢大家