Status Update
Comments
ca...@google.com <ca...@google.com> #2
Thank you for posting.
We'll need some more details to troubleshoot this issue - please provide the following, in particular steps to reproduce the issue:
-
Put together a simplified reproduction case (
http://sscce.org/ ) and add it to a git hosting provider (e.g. github, bitbucket, etc)? The easiest way to do this might be to fork the Google Maps Android API Samples Repository and modify one of the existing demo activities:https://github.com/googlemaps/android-samples -
List steps to reproduce the problem
- Maps SDK client library version (used to build your app):
- Maps renderer (Latest or Legacy):
- Devices you have verified this issue on:
- Google Play Services version on the device:
- Android version:
- Manufacturer and model:
- Was this working correctly on a previous version of Google Play Services? (If yes, which client library and SDK version?)
-
Attach the following:
- screenshots
- sample code
- an APK if possible.
-
If the problem exhibits itself in a released version of your app on the Play Store, optionally link us to the app, and explain how to reproduce the issue in your app.
-
Complete stacktrace when the issue occurs
as...@google.com <as...@google.com> #3
#1: Navigation SDK bundles Maps SDK, so if you include both SDKs in your app you will get an error about duplicate classes as above.
When you use Navigation SDK, you have to exclude Maps SDK in your configuration. See
When using Navigation SDK, we encourage using NavigationView or SupportNavigationFragment exclusively where possible, even for use cases of just showing a map and not navigating. However, if you have an existing code that uses MapView or SupportMapFragment, Navigation SDK also has these classes to ease your migration to NavigationView or SupportNavigationFragment. We have some sample codes for this; see our documentation at
And a note about React Native: there is a React Native plugin for Navigation SDK; see
mo...@gmail.com <mo...@gmail.com> #4
Not exactly true... I am trying to convert an existing app using the Maps SDK to the Navigation SDK. I followed all the requirements to exclude the Maps SDK. The app runs without further modification, but using the existing MapView in the app shows blank map tiles when using the Navigation SDK. No log errors show even with the blank tiles. If the MapView is recoded to use NavigationView instead (no other changes), then the map tiles start showing again.
So, no... existing code using MapView does NOT work when using the Navigation SDK. It is not a simple ease into the new Navigation SDK as described.
Update: after a day of pulling my hair trying to get a MapView to render again I finally discovered the using a Maps Cloud Styling mapID in GoogleMapOptions causes the MapView to not display map tiles. Removing the mapId results in the MapView showing correctly... without the desired map style unfortunately.
Description
Problem Statement:
I have a requirement where I need to build an app which opens a map initially with the current location and one destination(configurable). And if I'm click on thedestination marker it should Take me to the navigation view.
For the above I have used NavigationSDK 6.0.0 for the navigation part and for the maps viewing part Im using react-native-maps: 1.15.3 which uses google map services 18.2.0.
But Im facing the below issue.. Can Anyone help me out with this?
Execution failed for task ':app:checkDebugDuplicateClasses'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.CheckDuplicatesRunnable
> Duplicate class com.google.android.gms.maps.CameraUpdate found in modules jetified-navigation-6.0.0-runtime (com.google.android.libraries.navigation:navigation:6.0.0) and jetified-play-services-maps-18.2.0-runtime (com.google.android.gms:play-services-maps:18.2.0)
Duplicate class com.google.android.gms.maps.CameraUpdateFactory found in modules jetified-navigation-6.0.0-runtime (com.google.android.libraries.navigation:navigation:6.0.0) and jetified-play-services-maps-18.2.0-runtime (com.google.android.gms:play-services-maps:18.2.0)
Duplicate class com.google.android.gms.maps.GoogleMap found in modules jetified-navigation-6.0.0-runtime (com.google.android.libraries.navigation:navigation:6.0.0) and jetified-play-services-maps-18.2.0-runtime (com.google.android.gms:play-services-maps:18.2.0)
Duplicate class com.google.android.gms.maps.GoogleMap$CancelableCallback found in modules jetified-navigation-6.0.0-runtime (com.google.android.libraries.navigation:navigation:6.0.0) and jetified-play-services-maps-18.2.0-runtime (com.google.android.gms:play-services-maps:18.2.0)
Duplicate class com.google.android.gms.maps.GoogleMap$InfoWindowAdapter found in modules jetified-navigation-6.0.0-runtime (com.google.android.libraries.navigation:navigation:6.0.0) and jetified-play-services-maps-18.2.0-runtime (com.google.android.gms:play-services-maps:18.2.0)
Duplicate class com.google.android.gms.maps.GoogleMap$OnCameraChangeListener found in modules jetified-navigation-6.0.0-runtime (com.google.android.libraries.navigation:navigation:6.0.0) and jetified-play-services-maps-18.2.0-runtime (com.google.android.gms:play-services-maps:18.2.0)
Duplicate class com.google.android.gms.maps.GoogleMap$OnCameraIdleListener found in modules jetified-navigation-6.0.0-runtime (com.google.android.libraries.navigation:navigation:6.0.0) and jetified-play-services-maps-18.2.0-runtime (com.google.android.gms:play-services-maps:18.2.0)
Duplicate class com.google.android.gms.maps.GoogleMap$OnCameraMoveCanceledListener found in modules jetified-navigation-6.0.0-runtime (com.google.android.libraries.navigation:navigation:6.0.0) and jetified-play-services-maps-18.2.0-runtime (com.google.android.gms:play-services-maps:18.2.0)
Duplicate class com.google.android.gms.maps.GoogleMap$OnCameraMoveListener found in modules jetified-navigation-6.0.0-runtime (com.google.android.libraries.navigation:navigation:6.0.0) and jetified-play-services-maps-18.2.0-runtime (com.google.android.gms:play-services-maps:18.2.0)
Duplicate class com.google.android.gms.maps.GoogleMap$OnCameraMoveStartedListener found in modules jetified-navigation-6.0.0-runtime (com.google.android.libraries.navigation:navigation:6.0.0) and jetified-play-services-maps-18.2.0-runtime (com.google.android.gms:play-services-maps:18.2.0)
Duplicate class com.google.android.gms.maps.GoogleMap$OnCircleClickListener found in modules jetified-navigation-6.0.0-runtime (com.google.android.libraries.navigation:navigation:6.0.0) and jetified-play-services-maps-18.2.0-runtime (com.google.android.gms:play-services-maps:18.2.0)
Duplicate class com.google.android.gms.maps.GoogleMap$OnGroundOverlayClickListener found in modules jetified-navigation-6.0.0-runtime (com.google.android.libraries.navigation:navigation:6.0.0) and jetified-play-services-maps-18.2.0-runtime (com.google.android.gms:play-services-maps:18.2.0)
Duplicate class com.google.android.gms.maps.GoogleMap$OnIndoorStateChangeListener found in modules jetified-navigation-6.0.0-runtime (com.google.android.libraries.navigation:navigation:6.0.0) and jetified-play-services-maps-18.2.0-runtime (com.google.android.gms:play-services-maps:18.2.0)
Duplicate class com.google.android.gms.maps.GoogleMap$OnInfoWindowClickListener found in modules jetified-navigation-6.0.0-runtime (com.google.android.libraries.navigation:navigation:6.0.0) and jetified-play-services-maps-18.2.0-runtime (com.google.android.gms:play-services-maps:18.2.0)
Duplicate class com.google.android.gms.maps.GoogleMap$OnInfoWindowCloseListener found in modules jetified-navigation-6.0.0-runtime (com.google.android.libraries.navigation:navigation:6.0.0) and jetified-play-services-maps-18.2.0-runtime (com.google.android.gms:play-services-maps:18.2.0)
Duplicate class com.google.android.gms.maps.GoogleMap$OnInfoWindowLongClickListener found in modules jetified-navigation-6.0.0-runtime (com.google.android.libraries.navigation:navigation:6.0.0) and jetified-play-services-maps-18.2.0-runtime (com.google.android.gms:play-services-maps:18.2.0)
Duplicate class com.google.android.gms.maps.GoogleMap$OnMapCapabilitiesChangedListener found in modules jetified-navigation-6.0.0-runtime (com.google.android.libraries.navigation:navigation:6.0.0) and jetified-play-services-maps-18.2.0-runtime (com.google.android.gms:play-services-maps:18.2.0)
Duplicate class com.google.android.gms.maps.GoogleMap$OnMapClickListener found in modules jetified-navigation-6.0.0-runtime (com.google.android.libraries.navigation:navigation:6.0.0) and jetified-play-services-maps-18.2.0-runtime (com.google.android.gms:play-services-maps:18.2.0)
Duplicate class com.google.android.gms.maps.GoogleMap$OnMapLoadedCallback found in modules jetified-navigation-6.0.0-runtime (com.google.android.libraries.navigation:navigation:6.0.0) and jetified-play-services-maps-18.2.0-runtime (com.google.android.gms:play-services-maps:18.2.0)
Duplicate class com.google.android.gms.maps.GoogleMap$OnMapLongClickListener found in modules jetified-navigation-6.0.0-runtime (com.google.android.libraries.navigation:navigation:6.0.0) and jetified-play-services-maps-18.2.0-runtime (com.google.android.gms:play-services-maps:18.2.0)
Duplicate class com.google.android.gms.maps.GoogleMap$OnMarkerClickListener found in modules jetified-navigation-6.0.0-runtime (com.google.android.libraries.navigation:navigation:6.0.0) and jetified-play-services-maps-18.2.0-runtime (com.google.android.gms:play-services-maps:18.2.0)
Duplicate class com.google.android.gms.maps.GoogleMap$OnMarkerDragListener found in modules jetified-navigation-6.0.0-runtime (com.google.android.libraries.navigation:navigation:6.0.0) and jetified-play-services-maps-18.2.0-runtime (com.google.android.gms:play-services-maps:18.2.0)
Duplicate class com.google.android.gms.maps.GoogleMap$OnMyLocationButtonClickListener found in modules jetified-navigation-6.0.0-runtime (com.google.android.libraries.navigation:navigation:6.0.0) and jetified-play-services-maps-18.2.0-runtime (com.google.android.gms:play-services-maps:18.2.0)
Duplicate class com.google.android.gms.maps.GoogleMap$OnMyLocationChangeListener found in modules jetified-navigation-6.0.0-runtime (com.google.android.libraries.navigation:navigation:6.0.0) and jetified-play-services-maps-18.2.0-runtime (com.google.android.gms:play-services-maps:18.2.0)
Duplicate class com.google.android.gms.maps.GoogleMap$OnMyLocationClickListener found in modules jetified-navigation-6.0.0-runtime (com.google.android.libraries.navigation:navigation:6.0.0) and jetified-play-services-maps-18.2.0-runtime (com.google.android.gms:play-services-maps:18.2.0)
Duplicate class com.google.android.gms.maps.GoogleMap$OnPoiClickListener found in modules jetified-navigation-6.0.0-runtime (com.google.android.libraries.navigation:navigation:6.0.0) and jetified-play-services-maps-18.2.0-runtime (com.google.android.gms:play-services-maps:18.2.0)
Duplicate class com.google.android.gms.maps.GoogleMap$OnPolygonClickListener found in modules jetified-navigation-6.0.0-runtime (com.google.android.libraries.navigation:navigation:6.0.0) and jetified-play-services-maps-18.2.0-runtime (com.google.android.gms:play-services-maps:18.2.0)
Duplicate class com.google.android.gms.maps.GoogleMap$OnPolylineClickListener found in modules jetified-navigation-6.0.0-runtime (com.google.android.libraries.navigation:navigation:6.0.0) and jetified-play-services-maps-18.2.0-runtime (com.google.android.gms:play-services-maps:18.2.0)
Duplicate class com.google.android.gms.maps.GoogleMap$SnapshotReadyCallback found in modules jetified-navigation-6.0.0-runtime (com.google.android.libraries.navigation:navigation:6.0.0) and jetified-play-services-maps-18.2.0-runtime (com.google.android.gms:play-services-maps:18.2.0)
Duplicate class com.google.android.gms.maps.GoogleMapOptions found in modules jetified-navigation-6.0.0-runtime (com.google.android.libraries.navigation:navigation:6.0.0) and jetified-play-services-maps-18.2.0-runtime (com.google.android.gms:play-services-maps:18.2.0)
Duplicate class com.google.android.gms.maps.LocationSource found in modules jetified-navigation-6.0.0-runtime (com.google.android.libraries.navigation:navigation:6.0.0) and jetified-play-services-maps-18.2.0-runtime (com.google.android.gms:play-services-maps:18.2.0)
Duplicate class com.google.android.gms.maps.LocationSource$OnLocationChangedListener found in modules jetified-navigation-6.0.0-runtime (com.google.android.libraries.navigation:navigation:6.0.0) and jetified-play-services-maps-18.2.0-runtime (com.google.android.gms:play-services-maps:18.2.0)
Duplicate class com.google.android.gms.maps.MapFragment found in modules jetified-navigation-6.0.0-runtime (com.google.android.libraries.navigation:navigation:6.0.0) and jetified-play-services-maps-18.2.0-runtime (com.google.android.gms:play-services-maps:18.2.0)
Duplicate class com.google.android.gms.maps.MapView found in modules jetified-navigation-6.0.0-runtime (com.google.android.libraries.navigation:navigation:6.0.0) and jetified-play-services-maps-18.2.0-runtime (com.google.android.gms:play-services-maps:18.2.0)
Duplicate class com.google.android.gms.maps.MapsInitializer found in modules jetified-navigation-6.0.0-runtime (com.google.android.libraries.navigation:navigation:6.0.0) and jetified-play-services-maps-18.2.0-runtime (com.google.android.gms:play-services-maps:18.2.0)
Duplicate class com.google.android.gms.maps.MapsInitializer$Renderer found in modules jetified-navigation-6.0.0-runtime (com.google.android.libraries.navigation:navigation:6.0.0) and jetified-play-services-maps-18.2.0-runtime (com.google.android.gms:play-services-maps:18.2.0)
Duplicate class com.google.android.gms.maps.OnMapReadyCallback found in modules jetified-navigation-6.0.0-runtime (com.google.android.libraries.navigation:navigation:6.0.0) and jetified-play-services-maps-18.2.0-runtime (com.google.android.gms:play-services-maps:18.2.0)
Duplicate class com.google.android.gms.maps.OnMapsSdkInitializedCallback found in modules jetified-navigation-6.0.0-runtime (com.google.android.libraries.navigation:navigation:6.0.0) and jetified-play-services-maps-18.2.0-runtime (com.google.android.gms:play-services-maps:18.2.0)
Duplicate class com.google.android.gms.maps.OnStreetViewPanoramaReadyCallback found in modules jetified-navigation-6.0.0-runtime (com.google.android.libraries.navigation:navigation:6.0.0) and jetified-play-services-maps-18.2.0-runtime (com.google.android.gms:play-services-maps:18.2.0)
Duplicate class com.google.android.gms.maps.Projection found in modules jetified-navigation-6.0.0-runtime (com.google.android.libraries.navigation:navigation:6.0.0) and jetified-play-services-maps-18.2.0-runtime (com.google.android.gms:play-services-maps:18.2.0)
Duplicate class com.google.android.gms.maps.StreetViewPanorama found in modules jetified-navigation-6.0.0-runtime (com.google.android.libraries.navigation:navigation:6.0.0) and jetified-play-services-maps-18.2.0-runtime (com.google.android.gms:play-services-maps:18.2.0)
Duplicate class com.google.android.gms.maps.StreetViewPanorama$OnStreetViewPanoramaCameraChangeListener found in modules jetified-navigation-6.0.0-runtime (com.google.android.libraries.navigation:navigation:6.0.0) and jetified-play-services-maps-18.2.0-runtime (com.google.android.gms:play-services-maps:18.2.0)
Duplicate class com.google.android.gms.maps.StreetViewPanorama$OnStreetViewPanoramaChangeListener found in modules jetified-navigation-6.0.0-runtime (com.google.android.libraries.navigation:navigation:6.0.0) and jetified-play-services-maps-18.2.0-runtime (com.google.android.gms:play-services-maps:18.2.0)
Duplicate class com.google.android.gms.maps.StreetViewPanorama$OnStreetViewPanoramaClickListener found in modules jetified-navigation-6.0.0-runtime (com.google.android.libraries.navigation:navigation:6.0.0) and jetified-play-services-maps-18.2.0-runtime (com.google.android.gms:play-services-maps:18.2.0)
Duplicate class com.google.android.gms.maps.StreetViewPanorama$OnStreetViewPanoramaLongClickListener found in modules jetified-navigation-6.0.0-runtime (com.google.android.libraries.navigation:navigation:6.0.0) and jetified-play-services-maps-18.2.0-runtime (com.google.android.gms:play-services-maps:18.2.0)
Duplicate class com.google.android.gms.maps.StreetViewPanoramaFragment found in modules jetified-navigation-6.0.0-runtime (com.google.android.libraries.navigation:navigation:6.0.0) and jetified-play-services-maps-18.2.0-runtime (com.google.android.gms:play-services-maps:18.2.0)
Duplicate class com.google.android.gms.maps.StreetViewPanoramaOptions found in modules jetified-navigation-6.0.0-runtime (com.google.android.libraries.navigation:navigation:6.0.0) and jetified-play-services-maps-18.2.0-runtime (com.google.android.gms:play-services-maps:18.2.0)
Duplicate class com.google.android.gms.maps.StreetViewPanoramaView found in modules jetified-navigation-6.0.0-runtime (com.google.android.libraries.navigation:navigation:6.0.0) and jetified-play-services-maps-18.2.0-runtime (com.google.android.gms:play-services-maps:18.2.0)
Duplicate class com.google.android.gms.maps.SupportMapFragment found in modules jetified-navigation-6.0.0-runtime (com.google.android.libraries.navigation:navigation:6.0.0) and jetified-play-services-maps-18.2.0-runtime (com.google.android.gms:play-services-maps:18.2.0)
Duplicate class com.google.android.gms.maps.SupportStreetViewPanoramaFragment found in modules jetified-navigation-6.0.0-runtime (com.google.android.libraries.navigation:navigation:6.0.0) and jetified-play-services-maps-18.2.0-runtime (com.google.android.gms:play-services-maps:18.2.0)
Duplicate class com.google.android.gms.maps.UiSettings found in modules jetified-navigation-6.0.0-runtime (com.google.android.libraries.navigation:navigation:6.0.0) and jetified-play-services-maps-18.2.0-runtime (com.google.android.gms:play-services-maps:18.2.0)
Duplicate class com.google.android.gms.maps.model.AdvancedMarker found in modules jetified-navigation-6.0.0-runtime (com.google.android.libraries.navigation:navigation:6.0.0) and jetified-play-services-maps-18.2.0-runtime (com.google.android.gms:play-services-maps:18.2.0)
Duplicate class com.google.android.gms.maps.model.AdvancedMarkerOptions found in modules jetified-navigation-6.0.0-runtime (com.google.android.libraries.navigation:navigation:6.0.0) and jetified-play-services-maps-18.2.0-runtime (com.google.android.gms:play-services-maps:18.2.0)
Duplicate class com.google.android.gms.maps.model.AdvancedMarkerOptions$CollisionBehavior found in modules jetified-navigation-6.0.0-runtime (com.google.android.libraries.navigation:navigation:6.0.0) and jetified-play-services-maps-18.2.0-runtime (com.google.android.gms:play-services-maps:18.2.0)
Duplicate class com.google.android.gms.maps.model.BitmapDescriptor found in modules jetified-navigation-6.0.0-runtime (com.google.android.libraries.navigation:navigation:6.0.0) and jetified-play-services-maps-18.2.0-runtime (com.google.android.gms:play-services-maps:18.2.0)
Duplicate class com.google.android.gms.maps.model.BitmapDescriptorFactory found in modules jetified-navigation-6.0.0-runtime (com.google.android.libraries.navigation:navigation:6.0.0) and jetified-play-services-maps-18.2.0-runtime (com.google.android.gms:play-services-maps:18.2.0)
Duplicate class com.google.android.gms.maps.model.ButtCap found in modules jetified-navigation-6.0.0-runtime (com.google.android.libraries.navigation:navigation:6.0.0) and jetified-play-services-maps-18.2.0-runtime (com.google.android.gms:play-services-maps:18.2.0)
Duplicate class com.google.android.gms.maps.model.CameraPosition found in modules jetified-navigation-6.0.0-runtime (com.google.android.libraries.navigation:navigation:6.0.0) and jetified-play-services-maps-18.2.0-runtime (com.google.android.gms:play-services-maps:18.2.0)
Duplicate class com.google.android.gms.maps.model.CameraPosition$Builder found in modules jetified-navigation-6.0.0-runtime (com.google.android.libraries.navigation:navigation:6.0.0) and jetified-play-services-maps-18.2.0-runtime (com.google.android.gms:play-services-maps:18.2.0)
Duplicate class com.google.android.gms.maps.model.Cap found in modules jetified-navigation-6.0.0-runtime (com.google.android.libraries.navigation:navigation:6.0.0) and jetified-play-services-maps-18.2.0-runtime (com.google.android.gms:play-services-maps:18.2.0)
Duplicate class com.google.android.gms.maps.model.Circle found in modules jetified-navigation-6.0.0-runtime (com.google.android.libraries.navigation:navigation:6.0.0) and jetified-play-services-maps-18.2.0-runtime (com.google.android.gms:play-services-maps:18.2.0)
Duplicate class com.google.android.gms.maps.model.CircleOptions found in modules jetified-navigation-6.0.0-runtime (com.google.android.libraries.navigation:navigation:6.0.0) and jetified-play-services-maps-18.2.0-runtime (com.google.android.gms:play-services-maps:18.2.0)
Duplicate class com.google.android.gms.maps.model.CustomCap found in modules jetified-navigation-6.0.0-runtime (com.google.android.libraries.navigation:navigation:6.0.0) and jetified-play-services-maps-18.2.0-runtime (com.google.android.gms:play-services-maps:18.2.0)
Duplicate class com.google.android.gms.maps.model.Dash found in modules jetified-navigation-6.0.0-runtime (com.google.android.libraries.navigation:navigation:6.0.0) and jetified-play-services-maps-18.2.0-runtime (com.google.android.gms:play-services-maps:18.2.0)
Duplicate class com.google.android.gms.maps.model.Dot found in modules jetified-navigation-6.0.0-runtime (com.google.android.libraries.navigation:navigation:6.0.0) and jetified-play-services-maps-18.2.0-runtime (com.google.android.gms:play-services-maps:18.2.0)
Duplicate class com.google.android.gms.maps.model.Gap found in modules jetified-navigation-6.0.0-runtime (com.google.android.libraries.navigation:navigation:6.0.0) and jetified-play-services-maps-18.2.0-runtime (com.google.android.gms:play-services-maps:18.2.0)
Duplicate class com.google.android.gms.maps.model.GroundOverlay found in modules jetified-navigation-6.0.0-runtime (com.google.android.libraries.navigation:navigation:6.0.0) and jetified-play-services-maps-18.2.0-runtime (com.google.android.gms:play-services-maps:18.2.0)
Duplicate class com.google.android.gms.maps.model.GroundOverlayOptions found in modules jetified-navigation-6.0.0-runtime (com.google.android.libraries.navigation:navigation:6.0.0) and jetified-play-services-maps-18.2.0-runtime (com.google.android.gms:play-services-maps:18.2.0)
Duplicate class com.google.android.gms.maps.model.IndoorBuilding found in modules jetified-navigation-6.0.0-runtime (com.google.android.libraries.navigation:navigation:6.0.0) and jetified-play-services-maps-18.2.0-runtime (com.google.android.gms:play-services-maps:18.2.0)
Duplicate class com.google.android.gms.maps.model.IndoorLevel found in modules jetified-navigation-6.0.0-runtime (com.google.android.libraries.navigation:navigation:6.0.0) and jetified-play-services-maps-18.2.0-runtime (com.google.android.gms:play-services-maps:18.2.0)
Duplicate class com.google.android.gms.maps.model.JointType found in modules jetified-navigation-6.0.0-runtime (com.google.android.libraries.navigation:navigation:6.0.0) and jetified-play-services-maps-18.2.0-runtime (com.google.android.gms:play-services-maps:18.2.0)
Duplicate class com.google.android.gms.maps.model.LatLng found in modules jetified-navigation-6.0.0-runtime (com.google.android.libraries.navigation:navigation:6.0.0) and jetified-play-services-maps-18.2.0-runtime (com.google.android.gms:play-services-maps:18.2.0)
Duplicate class com.google.android.gms.maps.model.LatLngBounds found in modules jetified-navigation-6.0.0-runtime (com.google.android.libraries.navigation:navigation:6.0.0) and jetified-play-services-maps-18.2.0-runtime (com.google.android.gms:play-services-maps:18.2.0)