Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error building flutter example #800

Closed
lucasoares opened this issue Oct 4, 2022 · 1 comment
Closed

Error building flutter example #800

lucasoares opened this issue Oct 4, 2022 · 1 comment
Labels
new New issue request attention

Comments

@lucasoares
Copy link

Describe the bug

Hello.

I'm trying to process dependencies using flutter pub get in the flutter_modular/example example folder and there are a few dependency errors.

Environment

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.3.3, on Microsoft Windows [Version 10.0.22621.521], locale pt-BR)
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2021.3)[✓] VS Code (version 1.71.2)
[✓] Connected device (2 available)[✓] HTTP Host Availability

To Reproduce
Clone, go to flutter_example/modular and execute flutter pub get

Error

[example] flutter pub get
Running "flutter pub get" in example...                         
Because test >=1.16.6 <1.16.7 depends on test_api 0.2.20 and test >=1.16.7 <1.17.0 depends on test_api 0.3.0, test >=1.16.6 <1.17.0 requires test_api 0.2.20 or 0.3.0.
And because test >=1.17.0 <1.17.6 depends on test_api 0.4.0 and test >=1.21.6 depends on test_api 0.4.14, test >=1.16.6 <1.17.6-∞ or >=1.21.6 requires test_api 0.2.20 or 0.3.0 or 0.4.0 or 0.4.14.
And because test >=1.20.0 <1.21.2 depends on test_api 0.4.9 and test >=1.19.4 <1.20.0 depends on test_api 0.4.8, test >=1.16.6 <1.17.6-∞ or >=1.19.4 <1.21.2-∞ or >=1.21.6 requires test_api 0.2.20 or 0.3.0 or 0.4.0 or 0.4.8 or 0.4.9 or 0.4.14.
And because test >=1.19.3 <1.19.4 depends on test_api 0.4.7 and test >=1.19.0 <1.19.3 depends on test_api 0.4.6, test >=1.16.6 <1.17.6-∞ or >=1.19.0 <1.21.2-∞ or >=1.21.6 requires test_api 0.2.20 or 0.3.0 or 0.4.0 or 0.4.6 or 0.4.7 or 0.4.8 or 0.4.9 or 0.4.14.
And because test >=1.18.1 <1.19.0 depends on test_api 0.4.5 and test >=1.18.0 <1.18.1 depends on test_api 0.4.4, test >=1.16.6 <1.17.6-∞ or >=1.18.0 <1.21.2-∞ or >=1.21.6 requires test_api 0.2.20 or 0.3.0 or 0.4.0 or 0.4.4 or 0.4.5 or 0.4.6 or 0.4.7 or 0.4.8 or 0.4.9 or 0.4.14.
And because test >=1.17.11 <1.18.0 depends on test_api 0.4.3 and test >=1.17.10 <1.17.11 depends on test_api 0.4.2, test >=1.16.6 <1.17.6-∞ or >=1.17.10 <1.21.2-∞ or >=1.21.6 requires test_api 0.2.20 or 0.3.0 or 0.4.0 or 0.4.2 or 0.4.3 or 0.4.4 or 0.4.5 or 0.4.6 or 0.4.7 or 0.4.8 or 0.4.9 or 0.4.14.
And because test >=1.17.6 <1.17.10 depends on test_api 0.4.1 and test >=1.16.0-nullsafety.19 <1.16.6 depends on test_api 0.2.19, test >=1.16.0-nullsafety.19 <1.21.2-∞ or >=1.21.6 requires test_api 0.2.19 or 0.2.20 or 0.3.0 or 0.4.0 or 0.4.1 or 0.4.2 or 0.4.3 or 0.4.4 or 0.4.5 or 0.4.6 or 0.4.7 or 0.4.8 or 0.4.9 or 0.4.14.
And because every version of flutter_test from sdk depends on test_api 0.4.12 and mocktail >=0.1.3 depends on test ^1.16.0, if flutter_test from sdk and mocktail >=0.1.3 then test >=1.21.2 <1.21.6.
And because test >=1.21.5 <1.21.6 depends on test_core 0.4.17 and test >=1.21.4 <1.21.5 depends on test_core 0.4.16, if flutter_test from sdk and mocktail >=0.1.3 then test_core 0.4.16 or 0.4.17 or test >=1.21.2 <1.21.4.
And because test >=1.21.3 <1.21.4 depends on test_core 0.4.15 and test >=1.21.2 <1.21.3 depends on test_core 0.4.14, if flutter_test from sdk and mocktail >=0.1.3 then test_core 0.4.14 or 0.4.15 or 0.4.16 or 0.4.17.
And because test_core >=0.4.13 <0.4.18 depends on analyzer >=3.3.0 <5.0.0 and build >=2.1.0 <2.2.0 depends on analyzer >=1.5.0 <3.0.0, one of flutter_test from sdk or mocktail >=0.1.3 or build >=2.1.0 <2.2.0 must be false.
And because example depends on modular_codegen ^3.0.1 which depends on build >=2.1.0 <2.2.0, flutter_test from sdk is incompatible with mocktail >=0.1.3.
So, because example depends on both mocktail ^0.1.4 and flutter_test from sdk, version solving failed.
pub get failed (1; So, because example depends on both mocktail ^0.1.4 and flutter_test from sdk, version solving failed.)
exit code 1
@lucasoares lucasoares added the new New issue request attention label Oct 4, 2022
@jacobaraujo7
Copy link
Contributor

fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new New issue request attention
Projects
None yet
Development

No branches or pull requests

2 participants