The plugin `fluttertoast` uses a deprecated version of the Android embedding.

-The plugin fluttertoast uses a deprecated version of the Android embedding.

Problem Description

`The plugin `fluttertoast` 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: https://flutter.dev/go/android-plugin-migration.
 fluttertoast: ^3.1.3

Cause Analysis:

The fluttertoast plugin uses a deprecated version built into Android.
To avoid unexpected runtime failures, or future build failures, try to see if this plugin supports Android V2 embedding.
Otherwise, consider removing it, as future versions of Flutter will remove these deprecated APIs.

solution:

Open Terminal
and enter the code to upgrade the plugin

flutter pub upgrade --major-versions

insert image description here

Upgrade the plugin to the latest version
as follows, upgrade the 3.1.3 version of fluttertoast to 8.0.9

insert image description here
Pub get success
insert image description here

Guess you like

Origin blog.csdn.net/qq_43336158/article/details/123928238