Skip to content

Dependency conflict with path package when using Flutter SDK ≥3.29 #127

@Agent1997

Description

@Agent1997

Dependency conflict with path package when using Flutter SDK ≥3.29

Describe the issue:

Trying to use appium_flutter_server 0.0.27 with Flutter SDK 3.29.3 results in a dependency resolution failure due to an incompatible path dependency.

Resolving dependencies... 
Note: path is pinned to version 1.9.1 by flutter_localizations from the flutter SDK.
See https://dart.dev/go/sdk-version-pinning for details.

Because appium_flutter_server 0.0.27 depends on path 1.9.0 and every version of flutter_localizations from sdk depends
  on path 1.9.1, appium_flutter_server 0.0.27 is incompatible with flutter_localizations from sdk.
So, because my_app depends on both flutter_localizations from sdk and appium_flutter_server 0.0.27,
  version solving failed.

This also occurs when using other SDK-pinned packages like integration_test or flutter_test, which similarly lock path to 1.9.1.


Steps to Reproduce:

  1. Use Flutter SDK 3.29.3
  2. Add appium_flutter_server: ^0.0.27 to dev_dependencies
  3. Run flutter pub get

Expected Behavior:

Dependencies should resolve successfully.


Actual Behavior:

Fails with version solving error due to path 1.9.0 vs. 1.9.1 conflict.


Important Note:

We cannot remove or replace flutter_localizations (or similar conflicting SDK packages), as it is required by the application. This makes the conflict effectively unresolvable without a change in appium_flutter_server.


Environment:

  • Flutter: 3.29.3
  • Dart: 3.7.2
  • Platform: macOS

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions