依赖项无法在 Codemagic 上安装

问题描述

我正在尝试在 Codemagic 上构建一个 Flutter 应用程序,但在安装依赖项时构建失败。我已经升级了 pubspec.yaml 文件中的所有依赖项,但我在 Codemagic 中收到以下消息:

> Flutter packages pub get

== Install Flutter dependencies ==Resolving dependencies...
The current Dart SDK version is 2.13.0.

Because test >=1.16.0-nullsafety <1.16.0-nullsafety.8 requires SDK version >=2.10.0-0 <2.12.0 and test >=1.16.0-nullsafety.8 <1.16.0-nullsafety.18 depends on typed_data >=1.3.0-nullsafety <1.3.0,test >=1.16.0-nullsafety <1.16.0-nullsafety.18 requires typed_data >=1.3.0-nullsafety <1.3.0.
And because test >=1.16.0-nullsafety.18 <1.16.0-nullsafety.19 depends on test_api 0.2.19-nullsafety.7,test >=1.16.0-nullsafety <1.16.0-nullsafety.19 requires typed_data >=1.3.0-nullsafety <1.3.0 or test_api 0.2.19-nullsafety.7.
And because test >=1.15.5 <1.16.0-nullsafety depends on test_api 0.2.18+1 and test >=1.16.0-nullsafety.19 <1.16.6 depends on test_api 0.2.19,test >=1.15.5 <1.16.6 requires typed_data >=1.3.0-nullsafety <1.3.0 or test_api 0.2.18+1 or 0.2.19-nullsafety.7 or 0.2.19.
And because every version of Flutter_test from sdk depends on both typed_data 1.3.0 and test_api 0.3.0,Flutter_test from sdk is incompatible with test >=1.15.5 <1.16.6.
And because test >=1.16.6 depends on yaml ^3.0.0 and Flutter_launcher_icons 0.8.1 depends on yaml ^2.1.15,one of Flutter_test any from sdk or test >=1.15.5 or Flutter_launcher_icons 0.8.1 must be false.
And because no versions of Flutter_launcher_icons match >0.8.1 <0.9.0 and tonnah depends on Flutter_launcher_icons ^0.8.1,Flutter_test from sdk is incompatible with test >=1.15.5.
So,because tonnah depends on both test ^1.15.7 and Flutter_test any from sdk,version solving Failed.
pub finished with exit code 1


Build Failed :|
Failed to install dependencies

我对代码进行了大量更改,所以我不知道从哪里开始寻找解决方案。我没有在 Codemagic 中运行任何测试。

enter image description here

这是来自颤振医生:

Doctor summary (to see all details,run Flutter doctor -v):
[√] Flutter (Channel stable,2.0.5,on Microsoft Windows [Version
    10.0.19041.985],locale en-US)
[√] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
[√] Chrome - develop for the web
[√] Android Studio (version 4.1.0)
[√] VS Code (version 1.56.2)
[√] Connected device (3 available)

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)