chipweinberger / flutter_blue_plus

Flutter plugin for connecting and communicationg with Bluetooth Low Energy devices, on Android, iOS, macOS
Other
791 stars 479 forks source link

[Android] Type casting error when start scan #709

Closed BreadKey closed 1 year ago

BreadKey commented 1 year ago
E/AndroidRuntime(30132): java.lang.ClassCastException: java.lang.Boolean cannot be cast to java.lang.Integer
E/AndroidRuntime(30132): at com.lib.flutter_blue_plus.FlutterBluePlusPlugin$3.onScanResult(FlutterBluePlusPlugin.java:1882)
E/AndroidRuntime(30132): at android.bluetooth.le.BluetoothLeScanner$BleScanCallbackWrapper$1.run(BluetoothLeScanner.java:646)
E/AndroidRuntime(30132): at android.os.Handler.handleCallback(Handler.java:900)
E/AndroidRuntime(30132): at android.os.Handler.dispatchMessage(Handler.java:103)
E/AndroidRuntime(30132): at android.os.Looper.loop(Looper.java:219)
E/AndroidRuntime(30132): at android.app.ActivityThread.main(ActivityThread.java:8673)
E/AndroidRuntime(30132): at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime(30132): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:513)
E/AndroidRuntime(30132): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1109)
BreadKey commented 1 year ago

708