Skip to content

Android 12 error: could not find callback wrapper #622

@lpc-nz

Description

@lpc-nz

Hi everyone
I am working on the Bluetooth connection and I have some problems with the new Android version.
Most Android phones work perfectly except for some Samsung phones (S21, S21 +).
Does anyone know about these issues? Please give me some help.

I have tried to add permission but it still has no luck.

minSdkVersion 21
targetSdkVersion 31
    <uses-permission android:name="android.permission.BLUETOOTH" />
    <uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
    <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
I/flutter (23844): DeviceService - waiting for power on - BluetoothState.POWERED_ON
I/flutter (23844): DevicesScanningBloc - start scan
D/com.polidea.flutter_ble_lib.FlutterBleLibPlugin(23844): on native side observed method: startDeviceScan
I/BluetoothAdapter(23844): STATE_ON
I/BluetoothAdapter(23844): STATE_ON
I/BluetoothAdapter(23844): STATE_ON
I/BluetoothAdapter(23844): STATE_ON
D/BluetoothLeScanner(23844): Start Scan with callback
I/BluetoothAdapter(23844): STATE_ON
I/BluetoothAdapter(23844): STATE_ON
D/BluetoothLeScanner(23844): could not find callback wrapper

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions