Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compatibility Issue: Unable to Run google_maps_navigation with google_maps_flutter #148

Open
OrKahilaPumba opened this issue Sep 3, 2024 · 3 comments
Assignees
Labels
triage me I really want to be triaged. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.

Comments

@OrKahilaPumba
Copy link

OrKahilaPumba commented Sep 3, 2024

Environment details

  1. OS type and version - IOS

Steps to reproduce

  1. Add both google_maps_flutter and google_maps_navigation to pubspec.yaml.
  2. Run flutter pub get to install dependencies.
  3. Navigate to the ios folder and run pod install.
  4. Observe the error regarding incompatible GoogleMaps versions.

example

CocoaPods could not find compatible versions for pod "GoogleMaps":
In Podfile:
google_maps_flutter_ios (from .symlinks/plugins/google_maps_flutter_ios/ios) was resolved to 0.0.1, which depends on
GoogleMaps (< 10.0, >= 8.4)

google_maps_navigation (from `.symlinks/plugins/google_maps_navigation/ios`) was resolved to 0.0.1, which depends on
  GoogleNavigation (= 5.3.1) was resolved to 5.3.1, which depends on
    GoogleMaps (= 8.3.1)

Expected Behavior: I should be able to use both google_maps_navigation and google_maps_flutter together in the same Flutter project without any dependency conflicts.

Proposed Solutions:

  1. Update the google_maps_navigation package to support newer versions of the GoogleMaps pod.
  2. Provide a workaround to allow both packages to coexist in the same project.

Thanks!

@OrKahilaPumba OrKahilaPumba added triage me I really want to be triaged. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. labels Sep 3, 2024
@jokerttu
Copy link
Contributor

jokerttu commented Sep 4, 2024

Hi @OrKahilaPumba,

The conflict arises because both google_maps_flutter and flutter_navigation_sdk depend on the GoogleMaps SDK. Since the Navigation SDKs for Android and iOS have their own GoogleMaps SDK dependencies, this leads to the incompatibility you're encountering.

Note that the flutter_navigation_sdk includes ways to control the map itself, similar to what google_maps_flutter offers.

Could you let us know which specific features of google_maps_flutter you're looking to use that are missing from the flutter_navigation_sdk? This will help us better support your use case. If there are essential features you're missing, we can consider adding them to the flutter_navigation_sdk.

We're also planning to document this incompatibility in the README to help prevent confusion for other users.

Thanks for your feedback!

@OrKahilaPumba
Copy link
Author

OrKahilaPumba commented Sep 5, 2024 via email

@hkm5558
Copy link

hkm5558 commented Sep 9, 2024

Hi @OrKahilaPumba,

The conflict arises because both google_maps_flutter and flutter_navigation_sdk depend on the GoogleMaps SDK. Since the Navigation SDKs for Android and iOS have their own GoogleMaps SDK dependencies, this leads to the incompatibility you're encountering.

Note that the flutter_navigation_sdk includes ways to control the map itself, similar to what google_maps_flutter offers.

Could you let us know which specific features of google_maps_flutter you're looking to use that are missing from the flutter_navigation_sdk? This will help us better support your use case. If there are essential features you're missing, we can consider adding them to the flutter_navigation_sdk.

We're also planning to document this incompatibility in the README to help prevent confusion for other users.

Thanks for your feedback!

There is no takeSnapshot method,How should I get screenshots from the Map sdk in the current sdk?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triage me I really want to be triaged. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Projects
None yet
Development

No branches or pull requests

4 participants