flutter_bluetooth_basic icon indicating copy to clipboard operation
flutter_bluetooth_basic copied to clipboard

Uses a deprecated version of the Android embedding

Open janezmejias opened this issue 2 years ago • 4 comments

The plugin flutter_bluetooth_basic uses a deprecated version of the Android embedding. To avoid unexpected runtime failures, or future build failures, try to see if this plugin supports the Android V2 embedding. Otherwise, consider removing it since a future release of Flutter will remove these deprecated APIs. If you are plugin author, take a look at the docs for migrating the plugin to the V2 embedding:

janezmejias avatar Oct 05 '21 19:10 janezmejias

happened to me too, happened after flutter 2.5.2 upgrade I think.

❯ flutter doctor Doctor summary (to see all details, run flutter doctor -v): [✓] Flutter (Channel stable, 2.5.2, on macOS 11.6 20G165 darwin-arm, locale en-ID) [✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0) [✓] Xcode - develop for iOS and macOS [✓] Chrome - develop for the web [✓] Android Studio (version 2020.3) [✓] VS Code (version 1.60.2) [✓] Connected device (2 available)

pram507 avatar Oct 06 '21 05:10 pram507

The OP seems to have missed off the URL shown in the error: Here it is.

If you are plugin author, take a look at the docs for migrating the plugin to the V2 embedding: https://flutter.dev/go/android-plugin-migration.

Just for completeness, unsurprisingly the issue is in 2.5.3 too:

Running flutter doctor...
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 2.5.3, on Microsoft Windows [Version 10.0.19043.1288], locale en-GB)
[√] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
[√] Chrome - develop for the web
[√] Android Studio (version 2020.3)
[√] Android Studio
[√] Connected device (3 available)

• No issues found!

gbloggs avatar Oct 19 '21 14:10 gbloggs

me too

chukiatt avatar Nov 04 '21 13:11 chukiatt

me as well

5Gears0Chill avatar Dec 08 '21 10:12 5Gears0Chill