flutter_webview_plugin遇到报错解决办法
2021-12-15 本文已影响0人
testerzhang
问题:
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.
解决方案:
pubspec.yaml 对于flutter_webview_plugin
配置项改成下面这样
dependencies:
flutter_webview_plugin:
git: https://github.com/nuc134r/flutter_webview_plugin.git
欢迎关注我的公众号testerzhang,原创技术文章第一时间推送。