我无法在我的flutter应用程序上修复此错误。android/src/main/java/com/baseflow/permissionhandler/ServiceManager.java:154: warning: [deprecation] getDefaultAdapter() in BluetoothAdapter has been deprecated
final BluetoothAdapterbluetooth
permission_handler-7.2.0\android\src\main\java\com\baseflow\permissionhandler\ServiceManager.java:152:警告: BluetoothAdapter中的弃用getDefaultAdapter()已被弃用,最终BluetoothAdapterbluetoothAdapter = Bluetooth
当我在不活动的情况下尝试获取默认蓝牙适配器时,使用以下命令在TimerTask (在Service内创建)中获取该适配器:我得到了以下异常java.lang.RuntimeException: Can't create handler inside thread that has not called Looper.prepare()
我的应用程序没有任何活动