0

我已经将颤振版本升级到最新(2.5.2)。当我升级时,一些依赖项也升级了。但其中一些与 null-safe 不兼容。现在我将所有受支持的依赖项升级为空安全版本。

现在当我尝试时发生以下错误pub get

The plugin `flutter_webview_plugin` 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.

我还检查了flutter_webview_pluginhttps://pub.dev/packages没有比我使用的版本更新的版本(V 0.4.0),这是null-safety受支持的。

在此处输入图像描述

按照我添加的代码pubspec.yaml

flutter_webview_plugin: ^0.4.0

有什么解决方案可以在不降级flutter版本的情况下解决这个问题?

4

1 回答 1

0

从 2021 年 9 月开始在github上打开了一个问题。最好使用另一个包,例如webview 包,因为这个问题已经很长时间没有修复了。

于 2022-01-10T22:06:00.763 回答