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

[BUG]: [Version solving failed] Because every version of flutter_test from sdk depends on meta 1.11.0 #1035

Closed
phamquoctrongnta opened this issue May 15, 2024 · 2 comments

Comments

@phamquoctrongnta
Copy link

My pubspec

dependencies:
 flutter_sound: ^9.4.9
  • Important: Result of the command : flutter pub deps | grep flutter_sound
Note: meta is pinned to version 1.11.0 by flutter_test from the flutter SDK.
See https://dart.dev/go/sdk-version-pinning for details.


Because every version of flutter_test from sdk depends on meta 1.11.0 and flutter_sound_web >=9.4.7 depends on meta 1.12.0, flutter_test from sdk is incompatible with flutter_sound_web >=9.4.7.
And because flutter_sound >=9.4.9 depends on flutter_sound_web 9.4.9, flutter_test from sdk is incompatible with flutter_sound >=9.4.9.
So, because my_project depends on both flutter_sound ^9.4.9 and flutter_test from sdk, version solving failed.


You can try the following suggestion to make the pubspec resolve:
* Consider downgrading your constraint on flutter_sound: flutter pub add flutter_sound:^9.2.13

flutter doctor:

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.19.3, on macOS 14.0 23A344 darwin-arm64, locale en-VN)
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 15.0)
[✓] Android Studio (version 2023.2)
[✓] VS Code (version 1.88.0)
[✓] Connected device (3 available)
[✓] Network resources

• No issues found!
@Larpoux
Copy link
Collaborator

Larpoux commented May 15, 2024

Yes @phamquoctrongnta ,

There is something wrong with "meta" dependency.
I had a weird error and I did a very dirty fix, pinning meta to 1.12.0

This is bad and I must fix that correctly. You can expect a new flutter_sound version this evening or tomorrow with this hack fixed.
Sorry for that

@Larpoux
Copy link
Collaborator

Larpoux commented May 15, 2024

@phamquoctrongnta ,

Flutter Sound 9.4.10 is now published. It fixes the problem with pinning the "meta:" dependency.
Maybe you must remove the "meta:" dependency in your pubspec.yaml and pubspec.lock if you added it inside.
Gook luck.

@Larpoux Larpoux closed this as completed May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants