flutter - 插件 `XXXXX` 使用了已弃用的 Android 嵌入版本
问题描述
我试图使用 pub get 来获得我的依赖,但我不断收到一堆错误。我被困在这些错误中。
我试过 flutter clean, flutter upgrade and flutter doctor
没有任何问题。然后我试着 flutter pub cache repair
女巫给了我这个错误Failed to reactivate 1 package: - intl_utils pub finished with exit code 69
完全错误
The plugins `facebook_audience_network, flutter_statusbarcolor_ns, flutter_webview_plugin,
notification_permissions, onesignal_flutter, sms_autofill` use a deprecated version of the
Android embedding. To avoid unexpected runtime failures or future build failures, try to
see if these plugins support the Android V2 embedding. Otherwise, consider removing them
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
environment:
sdk: '>=2.12.0 <3.0.0'
facebook_audience_network: 1.0.0-nullsafety.0
flutter_statusbarcolor_ns: 0.3.0-nullsafety
flutter_webview_plugin: 0.4.0
notification_permissions: 0.5.0
onesignal_flutter: 3.2.0
sms_autofill: 2.0.1
...
解决方案
这是为了新的颤振更新。你无能为力。使用其他包或要求包开发人员解决问题。这个错误出现在flutter 2.5版本之后。
推荐阅读
- mysql - MYSQL:从每组中检索最后一条记录并结合另一个表的数据
- c# - 序列化 ScriptableObject 参考 (InstanceID)
- latex - 避免在 Latex 中的框外文本溢出
- spring - 如何使用 Spring Rest Controller 重定向到 VUE 模板?
- c - 如何用 rand() 替换 /dev/urandom?
- python - ZeroDivisionError:在熊猫数据帧上浮点除以零
- sql - 使用两个表之间的 sql developer 计算每个员工的应税百分比
- git - 当 gvim 设置为默认编辑器时,Git 不等待用户输入
- gradle - 具有“基础”插件构建依赖项的 gradle 多模块项目
- c++ - 尝试使用析构函数删除动态分配的矩阵时出错