mylisabox / flutter_mjpeg

Flutter widget to show mjpeg stream from URL
BSD 2-Clause "Simplified" License
30 stars 23 forks source link

http version solving failed #34

Open pluzmedia opened 1 year ago

pluzmedia commented 1 year ago

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 commented 1 year ago

Hi @pluzmedia, this was fixed in https://github.com/mylisabox/flutter_mjpeg/pull/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 commented 1 year ago

Thank you

abhinovpankaj commented 2 months ago

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 commented 2 months ago

@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 commented 2 months ago

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