【发布时间】:2021-10-25 11:01:42
【问题描述】:
我试图使用 pub get 来获取我的依赖项,但我不断收到一堆错误。 我陷入了这些错误。
我试过flutter clean, flutter upgrade and flutter doctor 没有任何问题。然后我尝试了 flutter pub cache repairwitch 给了我这个错误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
...
【问题讨论】:
-
你能分享你的 pubspec.yaml 吗?
标签: flutter flutter-dependencies deprecated