[Bug]: Dependency on package: package_info_plus
Please check the following before submitting a new issue.
- [x] I have searched the existing issues.
- [x] I have carefully read the documentation and verified I have added the required platform specific configuration.
Please select affected platform(s)
- [x] Android
- [x] iOS
- [x] Linux
- [x] macOS
- [x] Web
- [x] 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!
Same issue here package_info_plus was recently updated with the more modern toolset
Note: This release has breaking changes.
- On Android plugin now requires the following:
- Android Gradle Plugin >=8.12.1
- Gradle wrapper >=8.13
- Kotlin 2.2.0
- DOCS(all): replace MacOS by macOS in package READMEs ([#3658](https://github.com/fluttercommunity/plus_plugins/issues/3658)). ([72b6234c](https://github.com/fluttercommunity/plus_plugins/commit/72b6234c25315c30d8efc9f15a9258b0bb7273a8))
- BREAKING FEAT(package_info_plus): Change Android compile SDK, update Android build config ([#3674](https://github.com/fluttercommunity/plus_plugins/issues/3674)). ([78c2b742](https://github.com/fluttercommunity/plus_plugins/commit/78c2b7420bcc943b5f46a22285e750a0dc58e5bb))
same here
We are also getting same issue when going to update package_info_plus 9.0.0. Please fix it
Same issue for me! no problem with 14.0.1
Resolving dependencies... Because geolocator >=14.0.2 depends on geolocator_linux ^0.2.3 which depends on package_info_plus ^8.0.0, geolocator >=14.0.2 requires package_info_plus ^8.0.0. So, because ashbooking_mobile depends on both package_info_plus ^9.0.0 and geolocator ^14.0.2, version solving failed.
While waiting for this to be fixed upstream, anyone stumbling upon this issue can temporarily override the dependency with this:
dependency_overrides:
# Waiting for https://github.com/baseflow/flutter-geolocator/issues/1751
geolocator_linux:
git:
url: https://github.com/easyhour/flutter-geolocator.git
path: geolocator_linux
Thanks @mauriziopinotti . Just a quick question regarding the "linux" suffix. Is this only for linux?
Thanks @mauriziopinotti . Just a quick question regarding the "linux" suffix. Is this only for linux?
Yes, quoting from https://pub.dev/documentation/geolocator_linux/latest/ "The official Linux implementation of the geolocator plugin by Baseflow".
When will it be updated to support the latest version of the package_info_plus?
i am yet another user with this issue, hope it gets fixed soon