Sot*_*kun 35 deprecated flutter flutter-dependencies
我试图使用 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.
Run Code Online (Sandbox Code Playgroud)
我的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
...
Run Code Online (Sandbox Code Playgroud)
小智 6
这是 flutter v2.5 packge 之后出现的错误。现在降级 flutter 版本Version_list。现在我们看看如何降级Flutter版本。遵循这些简单的步骤。
前往终端并检查flutter --version
然后像这样更改频道后flutter channel stable/dev/beta/master
输入后flutter downgrade <version>(例如:flutter downgrade v1.2.1)(您可以在此处查看验证版本)
现在检查flutter --version。
现在请参阅降级版本
谢谢
| 归档时间: |
|
| 查看次数: |
99345 次 |
| 最近记录: |