0

I created an flutter app using flutter_blue But when I click the search-button, it doesn't search devices There are logcats I click the search-button

I'm a beginner of flutter_blue and logcat, so please interpret the logs and give me a solution

10-29 07:54:45.786   948  3912 E saftm   : model-utils.cc:48: GetModel called on an empty sequence of bytes              
10-29 07:54:45.787   948  3912 E saftm   : model-provider-from-fb.cc:69: Unable to initialize ModelProviderFromFlatbuffer
10-29 07:54:45.788   948  3912 E saftm   : lang-id.cc:71: Invalid model provider                                         
10-29 07:54:45.791   948  3911 E saftm   : mmap.cc:234: Error while mmapping: Invalid argument
10-29 07:54:45.791   948  3911 E saftm   : model-utils.cc:48: GetModel called on an empty sequence of bytes
10-29 07:54:45.791   948  3911 E saftm   : model-provider-from-fb.cc:69: Unable to initialize ModelProviderFromFlatbuffer
10-29 07:54:45.791   948  3911 E saftm   : lang-id.cc:71: Invalid model provider
10-29 07:54:45.807   754   754 I ClipboardListener: Clipboard overlay suppressed.
10-29 07:54:45.821  3854  3888 D EGL_emulation: app_time_stats: avg=6774.69ms min=6.08ms max=101383.01ms count=15
10-29 07:54:45.830   376   419 W RanchuHwc: presentDisplay display has no layers to compose, flushing client target buffer.
10-29 07:54:45.863   376   419 W RanchuHwc: presentDisplay display has no layers to compose, flushing client target buffer.
10-29 07:54:45.880   376   419 W RanchuHwc: presentDisplay display has no layers to compose, flushing client target buffer.
10-29 07:54:45.884  3854  3854 D BluetoothAdapter: isLeEnabled(): ON
10-29 07:54:45.889   351   351 E android.hardware.audio@7.0-impl.ranchu: device/generic/goldfish/audio/stream_out.cpp:updateSourceMetadata:378 failure: Result::NOT_SUPPORTED
10-29 07:54:45.912  3854  3887 I flutter : Error starting scan.
10-29 07:54:45.913  3854  3887 E flutter : [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: PlatformException(startScan, Need android.permission.BLUETOOTH_SCAN permission for android.content.AttributionSource@
c4ed81d5: GattService registerScanner, java.lang.SecurityException: Need android.permission.BLUETOOTH_SCAN permission for android.content.AttributionSource@c4ed81d5: GattService registerScanner
10-29 07:54:45.913  3854  3887 E flutter :      at com.android.bluetooth.Utils.checkPermissionForDataDelivery(Utils.java:482)
10-29 07:54:45.913  3854  3887 E flutter :      at com.android.bluetooth.Utils.checkScanPermissionForDataDelivery(Utils.java:541)
10-29 07:54:45.913  3854  3887 E flutter :      at com.android.bluetooth.gatt.GattService.registerScanner(GattService.java:2901)
10-29 07:54:45.913  3854  3887 E flutter :      at com.android.bluetooth.gatt.GattService$BluetoothGattBinder.registerScanner(GattService.java:646)
10-29 07:54:45.913  3854  3887 E flutter :      at com.android.bluetooth.gatt.GattService$BluetoothGattBinder.registerScanner(GattService.java:634)
10-29 07:54:45.913  3854  3887 E flutter :      at android.bluetooth.IBluetoothGatt$Stub.onTransact(IBluetoothGatt.java:256)
10-29 07:54:45.913  3854  3887 E flutter :      at android.os.Binder.execTransactInternal(Binder.java:1285)
10-29 07:54:45.913  3854  3887 E flutter :      at android.os.Binder.execTransact(Binder.java:1244)
10-29 07:54:45.913  3854  3887 E flutter : , null)
10-29 07:54:45.913  3854  3887 E flutter : #0      FlutterBlue.scan (package:flutter_blue/src/flutter_blue.dart:123:7)
10-29 07:54:45.913  3854  3887 E flutter : <asynchronous suspension>
10-29 07:54:45.913  3854  3887 E flutter :
10-29 07:54:45.914   376   419 W RanchuHwc: presentDisplay display has no layers to compose, flushing client target buffer.
10-29 07:54:45.963   376   419 W RanchuHwc: presentDisplay display has no layers to compose, flushing client target buffer.
10-29 07:54:45.980   376   419 W RanchuHwc: presentDisplay display has no layers to compose, flushing client target buffer.
10-29 07:54:45.996   376   419 W RanchuHwc: presentDisplay display has no layers to compose, flushing client target buffer.
10-29 07:54:46.012   376   419 W RanchuHwc: presentDisplay display has no layers to compose, flushing client target buffer.
10-29 07:54:46.037   376   419 W RanchuHwc: presentDisplay display has no layers to compose, flushing client target buffer.
10-29 07:54:46.064   376   419 W RanchuHwc: presentDisplay display has no layers to compose, flushing client target buffer.
10-29 07:54:46.084   376   419 W RanchuHwc: presentDisplay display has no layers to compose, flushing client target buffer.
10-29 07:54:46.097   376   419 W RanchuHwc: presentDisplay display has no layers to compose, flushing client target buffer.
10-29 07:54:46.114   376   419 W RanchuHwc: presentDisplay display has no layers to compose, flushing client target buffer.
10-29 07:54:46.130   376   419 W RanchuHwc: presentDisplay display has no layers to compose, flushing client target buffer.
10-29 07:54:46.132   351   351 E android.hardware.audio@7.0-impl.ranchu: device/generic/goldfish/audio/stream_out.cpp:updateSourceMetadata:378 failure: Result::NOT_SUPPORTED

0 Answers0