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

http version solving failed #34

Open
pluzmedia opened this issue Aug 30, 2023 · 5 comments
Open

http version solving failed #34

pluzmedia opened this issue Aug 30, 2023 · 5 comments

Comments

@pluzmedia
Copy link

Hi,
I am trying to use file_save but it failed due to http version solving failed.
file_saver >=0.2.7 depends on http ^1.1.0 and flutter_mjpeg 2.0.4 depends on http >=0.13.1 <1.0.0
Thanks

@cybrox
Copy link
Contributor

cybrox commented Aug 30, 2023

Hi @pluzmedia, this was fixed in #33, we should probably do a new release to get this out.

In the meantime, you can put this in your pubspec.yml to force it to use the latest version:

dependency_overrides:
  # Overriding this because there has not been a new release with the
  # bump of http to > 1.0.0 instead of ^0.13.0.
  flutter_mjpeg:
    git:
      url: https://github.com/mylisabox/flutter_mjpeg
      ref: e8cbafc08f9c81a71df6ac584e731d04cc742ec4

@pluzmedia
Copy link
Author

Thank you

@abhinovpankaj
Copy link

abhinovpankaj commented Jul 8, 2024

Tried this but didn't work for me, getting below error

--

[app_folder] flutter pub get
Resolving dependencies...
Because AppName depends on dependency_overrides any which doesn't exist (could not find package dependency_overrides at https://pub.dev), version solving failed.
exit code 69

Sometimes below error.

[deckinspectors_flutter] flutter pub get
Resolving dependencies...
Because E3InspectionsMultiTenant depends on dependency_overrides from unknown source "flutter_mjpeg", version solving failed.
exit code 1

@cybrox
Copy link
Contributor

cybrox commented Jul 8, 2024

@abhinovpankaj This looks like you indented the dependency_overrides: under dependencies: in your pubspec.yml and Flutter tries to resolve it

These both need to be top level keys.

dependencies:
  ...
dependency_overrides:
  ...

@abhinovpankaj
Copy link

Yes.you are right. I realized that after an hour, so silly of me..

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

No branches or pull requests

3 participants