Skip to content

[Bug]: Dependency on package: package_info_plus #1751

@thorito

Description

@thorito

Please check the following before submitting a new issue.

Please select affected platform(s)

  • Android
  • iOS
  • Linux
  • macOS
  • Web
  • Windows

Steps to reproduce

Use the updated version of package_info_plus in your project: ^9.0.0 and geolocator: ^14.0.2

Expected results

Be able to compile using the new version of package_info_plus

Actual results

I get the following error:

Because every version of tracker from path depends on geolocator ^14.0.2 and no versions of geolocator match >14.0.2 <15.0.0, every version of tracker from path requires geolocator 14.0.2.
And because geolocator 14.0.2 depends on geolocator_linux ^0.2.3, every version of tracker from path requires geolocator_linux ^0.2.3.
Because geolocator_linux 0.2.3 depends on package_info_plus ^8.0.0 and no versions of geolocator_linux match >0.2.3 <0.3.0, geolocator_linux ^0.2.3 requires package_info_plus ^8.0.0.
Thus, every version of tracker from path requires package_info_plus ^8.0.0.
And because every version of common from path depends on package_info_plus ^9.0.0, tracker from path is incompatible with common from path.
So, because worker depends on both common from path and tracker from path, version solving failed.
Failed to update packages.

Code sample

pubspec.yaml
name: example
description: Example
version: 0.0.1+1
publish_to: none

environment:
  sdk: '>=3.4.0 <4.0.0'
  flutter: '>=3.24.5'

dependencies:
  package_info_plus: ^9.0.0
  geolocator: ^14.0.2

flutter:
  uses-material-design: true

Screenshots or video

No response

Version

14.0.2

Flutter Doctor output

Doctor output
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.35.3, on macOS 15.6.1 24G90 darwin-arm64, locale es-ES)
[✓] Android toolchain - develop for Android devices (Android SDK version 36.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 16.4)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2025.1)
[✓] VS Code (version 1.103.2)
[✓] VS Code (version 1.82.2)
[✓] Connected device (4 available)
[✓] Network resources

• No issues found!

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