运行项目

来源:3-5 Flutter开发环境与Android开发环境设置详解(Windows)

慕田峪2101736

2022-08-27

运行项目报错:
The current Dart SDK version is 2.13.3.

Because flutter_trip depends on flutter_splash_screen >=1.0.0 which requires SDK version >=2.17.0 <3.0.0, version solving failed.
Running “flutter pub get” in flutter_trip…
pub get failed (1; Because flutter_trip depends on flutter_splash_screen >=1.0.0 which requires SDK version >=2.17.0 <3.0.0, version solving failed.)

写回答

2回答

CrazyCodeBoy

2022-08-30

^1.0.0+6 版本不是Anny,如果还行不行就先将splash_screen移除了看看
0
0

CrazyCodeBoy

2022-08-29

才有这个版本的flutter_splash_screen: ^1.0.0+6
试试呢
0
1
慕田峪2101736
不行,更改为flutter_splash_screen: any后 现在报错,Execution failed for task ':asr_plugin:compileDebugJavaWithJavac'. > Compilation failed; see the compiler error output for details.
2022-08-29
共1条回复

Flutter从入门到进阶 实战携程网App 一网打尽核心技术

解锁Flutter开发新姿势,,系统掌握Flutter开发核心技术。

4788 学习 · 3270 问题

查看课程