-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
fix: Impossible to Install bloc_test
, Version Solving Failed
#3110
Comments
Hi @erayerdin 👋 It looks like the issue is caused by the fact that name: myapp
description: A new Flutter project.
publish_to: "none"
version: 0.1.0+1
environment:
sdk: ">=2.14.0 <3.0.0"
dev_dependencies:
analyzer: ^3.0.0
flutter_test:
sdk: flutter
test: any
flutter:
uses-material-design: true This appears to have been changed in freezed v1.1.1 so you can use freezed v1.1.0 and everything should work as expected: name: myapp
description: A new Flutter project.
publish_to: 'none'
version: 0.1.0+1
environment:
sdk: ">=2.14.0 <3.0.0"
dependencies:
bloc: ^8.0.2
cupertino_icons: ^1.0.2
file_picker: ^4.3.0
fluro: ^2.0.3
flutter:
sdk: flutter
flutter_bloc: ^8.0.1
flutter_loggy: ^2.0.1
freezed_annotation: ^1.1.0
get_it: ^7.2.0
json_serializable: ^6.1.3
loggy: ^2.0.1
path: ^1.8.0
dev_dependencies:
bloc_test: ^9.0.2
build_runner: ^2.1.7
flutter_lints: ^1.0.0
flutter_test:
sdk: flutter
freezed: ">=1.0.0 <1.1.1"
flutter:
uses-material-design: true Let me know if that helps 👍 |
Thanks for quick response @felangel. It works. Feel free to close. |
@felangel |
@NTA-trongpq I may be late with the reply, but this dependencies stack work for for me:
I had to downgrade |
@felangel At my testproject this change is problematic. build_runner: ^2.3.0 => 2.3.2 my problem might be related to this closed ticket, but I don't know if it's really related to mocktail Running "flutter pub get" ... Because test >=1.16.0-nullsafety.19 <1.16.6 depends on test_api 0.2.19 and test >=1.16.6 <1.17.10 depends on analyzer ^1.0.0, test >=1.16.0-nullsafety.19 <1.17.10 requires test_api 0.2.19 or analyzer ^1.0.0. |
This is a duplicate of flutter/flutter#115284 and has been fixed on the master channel. |
Description
It is impossible to install
bloc_test
, it fails with the latest stable version of Flutter.Steps To Reproduce
bloc_test
todev_dependencies
. You can add the latest 9.0.2 version or even doany
to let the pub deal with latest compatible version.Expected Behavior
For it to install without any problem.
Additional Context
pubspec.yaml
file:Fails with saying (if version is 9.0.2):
Fails with saying if version is set to
any
:flutter --version
information:Installed on KDE Neon 5.23 (based on Ubuntu 20.04) with Snap.
The text was updated successfully, but these errors were encountered: