Closed dinurymomshad closed 1 month ago
Hi @dinurymomshad,
use:
dependency_overrides:
collection: ^1.19.0
in your `pubspec.yaml
If you need more info see the example provided with the package - https://github.com/faithoflifedev/easy_onvif_workspace/blob/main/packages/easy_onvif/example/pubspec.yaml
I am encountering a dependency conflict when trying to use the
easy_onvif
package version ^3.1.0 in my Flutter project. The conflict arises due to thehttp_parser
dependency version required byeasy_onvif
being incompatible with the version of the collection package pinned by the Flutter SDK.Flutter Version:
Flutter 3.24.3 • channel stable • https://github.com/flutter/flutter.git Framework • revision 2663184aa7 (6 weeks ago) • 2024-09-11 16:27:48 -0500 Engine • revision 36335019a8 Tools • Dart 3.5.3 • DevTools 2.37.3
Error Log:
Note: collection is pinned to version 1.18.0 by flutter from the flutter SDK. See https://dart.dev/go/sdk-version-pinning for details.
Because every version of flutter from sdk depends on collection 1.18.0 and http_parser >=4.1.0 depends on collection ^1.19.0, flutter from sdk is incompatible with http_parser >=4.1.0. And because easy_onvif >=3.1.0 depends on http_parser ^4.1.0, flutter from sdk is incompatible with easy_onvif >=3.1.0. So, because longshot_range depends on both flutter from sdk and easy_onvif ^3.1.0, version solving failed.
You can try the following suggestion to make the pubspec resolve: