微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

依赖项无法在 Codemagic 上安装

如何解决依赖项无法在 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 举报,一经查实,本站将立刻删除。