chatgpt_flutter工程里执行flutter pub get报错

来源:1-1 课程导学

Sargon

2024-01-18

错误信息如下:
The plugin flutter_splash_screen 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.

写回答

1回答

CrazyCodeBoy

2024-01-19

这个不影响运行,可以忽略。
也可通将flutter_splash_screen升级到最新版来解决来关闭这个log。
dependencies:
  flutter_splash_screen: ^2.0.1+1
0
2
Sargon
看pubspec.lock,拉到flutter_splash_screen已经是2.0.1+1,还是报错呢~ flutter_splash_screen: dependency: "direct main" description: name: flutter_splash_screen sha256: e98a1d7abfb2027c11b195539c4450b03b3913bdcbdc2b70659247f9745aebb7 url: "https://pub.flutter-io.cn" source: hosted version: "2.0.1+1"
2024-01-19
共2条回复

ChatGPT + Flutter快速开发多端聊天机器人App

ChatGPT + Flutter快速开发多端聊天机器人App

343 学习 · 90 问题

查看课程